Package org.apache.commons.el
Class PrimitiveObjects
- java.lang.Object
-
- org.apache.commons.el.PrimitiveObjects
-
class PrimitiveObjects extends java.lang.ObjectThis 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
Fields Modifier and Type Field Description (package private) static intBYTE_LOWER_BOUND(package private) static intBYTE_UPPER_BOUND(package private) static intCHARACTER_LOWER_BOUND(package private) static intCHARACTER_UPPER_BOUND(package private) static intINTEGER_LOWER_BOUND(package private) static intINTEGER_UPPER_BOUND(package private) static intLONG_LOWER_BOUND(package private) static intLONG_UPPER_BOUND(package private) static java.lang.Byte[]mBytes(package private) static java.lang.Character[]mCharacters(package private) static java.lang.Integer[]mIntegers(package private) static java.lang.Long[]mLongs(package private) static java.lang.Short[]mShorts(package private) static intSHORT_LOWER_BOUND(package private) static intSHORT_UPPER_BOUND
-
Constructor Summary
Constructors Constructor Description PrimitiveObjects()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static java.lang.Byte[]createBytes()(package private) static java.lang.Character[]createCharacters()(package private) static java.lang.Integer[]createIntegers()(package private) static java.lang.Long[]createLongs()(package private) static java.lang.Short[]createShorts()static java.lang.BooleangetBoolean(boolean pValue)static java.lang.BytegetByte(byte pValue)static java.lang.CharactergetCharacter(char pValue)static java.lang.DoublegetDouble(double pValue)static java.lang.FloatgetFloat(float pValue)static java.lang.IntegergetInteger(int pValue)static java.lang.LonggetLong(long pValue)static java.lang.ClassgetPrimitiveObjectClass(java.lang.Class pClass)If the given class is a primitive class, returns the object version of that class.static java.lang.ShortgetShort(short pValue)
-
-
-
Field Detail
-
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
static java.lang.Byte[] mBytes
-
mCharacters
static java.lang.Character[] mCharacters
-
mShorts
static java.lang.Short[] mShorts
-
mIntegers
static java.lang.Integer[] mIntegers
-
mLongs
static java.lang.Long[] mLongs
-
-
Method Detail
-
getBoolean
public static java.lang.Boolean getBoolean(boolean pValue)
-
getByte
public static java.lang.Byte getByte(byte pValue)
-
getCharacter
public static java.lang.Character getCharacter(char pValue)
-
getShort
public static java.lang.Short getShort(short pValue)
-
getInteger
public static java.lang.Integer getInteger(int pValue)
-
getLong
public static java.lang.Long getLong(long pValue)
-
getFloat
public static java.lang.Float getFloat(float pValue)
-
getDouble
public static java.lang.Double getDouble(double pValue)
-
getPrimitiveObjectClass
public static java.lang.Class getPrimitiveObjectClass(java.lang.Class pClass)
If the given class is a primitive class, returns the object version of that class. Otherwise, the class is just returned.
-
createBytes
static java.lang.Byte[] createBytes()
-
createCharacters
static java.lang.Character[] createCharacters()
-
createShorts
static java.lang.Short[] createShorts()
-
createIntegers
static java.lang.Integer[] createIntegers()
-
createLongs
static java.lang.Long[] createLongs()
-
-