001    package railo.runtime.op;
002    
003    
004    /**
005     * Constant Values
006     */
007    public final class Constants {
008            /**
009             * Field <code>INTEGER_ZERO</code> equals Integer.valueOf(0)
010             */
011            public static final Integer INTEGER_0=Integer.valueOf(0);
012            /**
013             * Field <code>INTEGER_ONE</code> equals Integer.valueOf(1)
014             */
015            public static final Integer INTEGER_1=Integer.valueOf(1);
016            
017            public static final Integer INTEGER_MINUS_ONE=Integer.valueOf(-1);
018            /**
019             * Field <code>INTEGER_TWO</code> equals Integer.valueOf(8)
020             */
021            public static final Integer INTEGER_2=Integer.valueOf(2);
022            /**
023             * Field <code>INTEGER_THREE</code> equals Integer.valueOf(3)
024             */
025            public static final Integer INTEGER_3=Integer.valueOf(3);
026            /**
027             * Field <code>INTEGER_FOUR</code> equals Integer.valueOf(4)
028             */
029            public static final Integer INTEGER_4=Integer.valueOf(4);
030            /**
031             * Field <code>INTEGER_FIVE</code> equals Integer.valueOf(5)
032             */
033            public static final Integer INTEGER_5=Integer.valueOf(5);
034            /**
035             * Field <code>INTEGER_SIX</code> equals Integer.valueOf(6)
036             */
037            public static final Integer INTEGER_6=Integer.valueOf(6);
038            /**
039             * Field <code>INTEGER_SEVEN</code> equals Integer.valueOf(7)
040             */
041            public static final Integer INTEGER_7=Integer.valueOf(7);
042            /**
043             * Field <code>INTEGER_EIGHT</code> equals Integer.valueOf(8)
044             */
045            public static final Integer INTEGER_8=Integer.valueOf(8);
046            /**
047             * Field <code>INTEGER_NINE</code> equals Integer.valueOf(9)
048             */
049            public static final Integer INTEGER_9=Integer.valueOf(9);
050            /**
051             * Field <code>INTEGER_NINE</code> equals Integer.valueOf(9)
052             */
053            public static final Integer INTEGER_10=Integer.valueOf(10);
054            public static final Integer INTEGER_11=Integer.valueOf(11);
055            public static final Integer INTEGER_12=Integer.valueOf(12);
056            
057    
058            public static final short SHORT_VALUE_ZERO = (short)0;
059            public static final Short SHORT_ZERO = Short.valueOf((short)0);
060            public static final Long LONG_ZERO = Long.valueOf(0);
061            public static final Double DOUBLE_ZERO = new Double(0);
062        
063        
064            
065        /**
066         * return a Integer object with same value
067         * @param i
068         * @return Integer Object
069         * @deprecated use Integer.valueOf() instead
070         */
071        public static Integer Integer(int i) {
072            //if(i>-1 && i<100) return INTEGER[i];
073            return Integer.valueOf(i);
074        }
075    
076        /**
077         * return a Boolean object with same value
078         * @param b
079         * @return Boolean Object
080         * @deprecated use Boolean.valueOf() instead
081         */
082        public static Boolean Boolean(boolean b) {
083            return b?Boolean.TRUE:Boolean.FALSE;
084        }
085        
086    }