class PrimitiveObjects
extends java.lang.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.
Modifier and Type | Field and Description |
---|---|
(package private) static int |
BYTE_LOWER_BOUND |
(package private) static int |
BYTE_UPPER_BOUND |
(package private) static int |
CHARACTER_LOWER_BOUND |
(package private) static int |
CHARACTER_UPPER_BOUND |
(package private) static int |
INTEGER_LOWER_BOUND |
(package private) static int |
INTEGER_UPPER_BOUND |
(package private) static int |
LONG_LOWER_BOUND |
(package private) static int |
LONG_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 int |
SHORT_LOWER_BOUND |
(package private) static int |
SHORT_UPPER_BOUND |
Constructor and Description |
---|
PrimitiveObjects() |
Modifier and Type | Method and 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.Boolean |
getBoolean(boolean pValue) |
static java.lang.Byte |
getByte(byte pValue) |
static java.lang.Character |
getCharacter(char pValue) |
static java.lang.Double |
getDouble(double pValue) |
static java.lang.Float |
getFloat(float pValue) |
static java.lang.Integer |
getInteger(int pValue) |
static java.lang.Long |
getLong(long pValue) |
static java.lang.Class |
getPrimitiveObjectClass(java.lang.Class pClass)
If the given class is a primitive class, returns the object
version of that class.
|
static java.lang.Short |
getShort(short pValue) |
static int BYTE_LOWER_BOUND
static int BYTE_UPPER_BOUND
static int CHARACTER_LOWER_BOUND
static int CHARACTER_UPPER_BOUND
static int SHORT_LOWER_BOUND
static int SHORT_UPPER_BOUND
static int INTEGER_LOWER_BOUND
static int INTEGER_UPPER_BOUND
static int LONG_LOWER_BOUND
static int LONG_UPPER_BOUND
static java.lang.Byte[] mBytes
static java.lang.Character[] mCharacters
static java.lang.Short[] mShorts
static java.lang.Integer[] mIntegers
static java.lang.Long[] mLongs
public static java.lang.Boolean getBoolean(boolean pValue)
public static java.lang.Byte getByte(byte pValue)
public static java.lang.Character getCharacter(char pValue)
public static java.lang.Short getShort(short pValue)
public static java.lang.Integer getInteger(int pValue)
public static java.lang.Long getLong(long pValue)
public static java.lang.Float getFloat(float pValue)
public static java.lang.Double getDouble(double pValue)
public static java.lang.Class getPrimitiveObjectClass(java.lang.Class pClass)
static java.lang.Byte[] createBytes()
static java.lang.Character[] createCharacters()
static java.lang.Short[] createShorts()
static java.lang.Integer[] createIntegers()
static java.lang.Long[] createLongs()