org.apache.commons.el

Class PrimitiveObjects

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 $

Author: Nathan Abramson - Art Technology Group

Field Summary
static intBYTE_LOWER_BOUND
static intBYTE_UPPER_BOUND
static intCHARACTER_LOWER_BOUND
static intCHARACTER_UPPER_BOUND
static intINTEGER_LOWER_BOUND
static intINTEGER_UPPER_BOUND
static intLONG_LOWER_BOUND
static intLONG_UPPER_BOUND
static Byte[]mBytes
static Character[]mCharacters
static Integer[]mIntegers
static Long[]mLongs
static Short[]mShorts
static intSHORT_LOWER_BOUND
static intSHORT_UPPER_BOUND
Method Summary
static Byte[]createBytes()
static Character[]createCharacters()
static Integer[]createIntegers()
static Long[]createLongs()
static Short[]createShorts()
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 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

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 Byte[] mBytes

mCharacters

static Character[] mCharacters

mIntegers

static Integer[] mIntegers

mLongs

static Long[] mLongs

mShorts

static Short[] mShorts

SHORT_LOWER_BOUND

static int SHORT_LOWER_BOUND

SHORT_UPPER_BOUND

static int SHORT_UPPER_BOUND

Method Detail

createBytes

static Byte[] createBytes()

createCharacters

static Character[] createCharacters()

createIntegers

static Integer[] createIntegers()

createLongs

static Long[] createLongs()

createShorts

static Short[] createShorts()

getBoolean

public static Boolean getBoolean(boolean pValue)

getByte

public static Byte getByte(byte pValue)

getCharacter

public static Character getCharacter(char pValue)

getDouble

public static Double getDouble(double pValue)

getFloat

public static Float getFloat(float pValue)

getInteger

public static Integer getInteger(int pValue)

getLong

public static Long getLong(long pValue)

getPrimitiveObjectClass

public static Class getPrimitiveObjectClass(Class pClass)
If the given class is a primitive class, returns the object version of that class. Otherwise, the class is just returned.

getShort

public static Short getShort(short pValue)
Copyright (c) 2001-2002 - Apache Software Foundation