Class PrimitiveObjects
java.lang.Object
org.apache.commons.el.PrimitiveObjects
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 $
- Author:
- Nathan Abramson - Art Technology Group
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static int(package private) static int(package private) static int(package private) static int(package private) static int(package private) static int(package private) static int(package private) static int(package private) static Byte[](package private) static Character[](package private) static Integer[](package private) static Long[](package private) static Short[](package private) static int(package private) static int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Byte[](package private) static Character[](package private) static Integer[](package private) static Long[](package private) static Short[]static BooleangetBoolean(boolean pValue) static BytegetByte(byte pValue) static CharactergetCharacter(char pValue) static DoublegetDouble(double pValue) static FloatgetFloat(float pValue) static IntegergetInteger(int pValue) static LonggetLong(long pValue) static ClassgetPrimitiveObjectClass(Class pClass) If the given class is a primitive class, returns the object version of that class.static ShortgetShort(short pValue)
-
Field Details
-
BYTE_LOWER_BOUND
static int BYTE_LOWER_BOUND -
BYTE_UPPER_BOUND
static int BYTE_UPPER_BOUND -
CHARACTER_LOWER_BOUND
static int CHARACTER_LOWER_BOUND -
CHARACTER_UPPER_BOUND
static int CHARACTER_UPPER_BOUND -
SHORT_LOWER_BOUND
static int SHORT_LOWER_BOUND -
SHORT_UPPER_BOUND
static int SHORT_UPPER_BOUND -
INTEGER_LOWER_BOUND
static int INTEGER_LOWER_BOUND -
INTEGER_UPPER_BOUND
static int INTEGER_UPPER_BOUND -
LONG_LOWER_BOUND
static int LONG_LOWER_BOUND -
LONG_UPPER_BOUND
static int LONG_UPPER_BOUND -
mBytes
-
mCharacters
-
mShorts
-
mIntegers
-
mLongs
-
-
Constructor Details
-
PrimitiveObjects
PrimitiveObjects()
-
-
Method Details
-
getBoolean
-
getByte
-
getCharacter
-
getShort
-
getInteger
-
getLong
-
getFloat
-
getDouble
-
getPrimitiveObjectClass
-
createBytes
-
createCharacters
-
createShorts
-
createIntegers
-
createLongs
-