org.apache.commons.el
class PrimitiveObjects extends Object
This converts primitive values to their Object counterparts. For bytes and chars, values from 0 to 255 are cached. For shorts, ints, and longs, values -1000 to 1000 are cached.
Version: $Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: luehe $
| Field Summary | |
|---|---|
| static int | BYTE_LOWER_BOUND |
| static int | BYTE_UPPER_BOUND |
| static int | CHARACTER_LOWER_BOUND |
| static int | CHARACTER_UPPER_BOUND |
| static int | INTEGER_LOWER_BOUND |
| static int | INTEGER_UPPER_BOUND |
| static int | LONG_LOWER_BOUND |
| static int | LONG_UPPER_BOUND |
| static Byte[] | mBytes |
| static Character[] | mCharacters |
| static Integer[] | mIntegers |
| static Long[] | mLongs |
| static Short[] | mShorts |
| static int | SHORT_LOWER_BOUND |
| static int | SHORT_UPPER_BOUND |
| Method Summary | |
|---|---|
| static Byte[] | createBytes() |
| static Character[] | createCharacters() |
| static Integer[] | createIntegers() |
| static Long[] | createLongs() |
| static Short[] | createShorts() |
| static Boolean | getBoolean(boolean pValue) |
| static Byte | getByte(byte pValue) |
| static Character | getCharacter(char pValue) |
| static Double | getDouble(double pValue) |
| static Float | getFloat(float pValue) |
| static Integer | getInteger(int pValue) |
| static Long | getLong(long pValue) |
| static Class | getPrimitiveObjectClass(Class pClass)
If the given class is a primitive class, returns the object
version of that class. |
| static Short | getShort(short pValue) |