|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.openorb.util.NumberCache
A utility class for obtaining Number instances.
The following system properties are used to configure the cache:
| Key | Value |
|---|---|
openorb.cache.disable |
Set this to false to disable all caching.
Note that this also disables Character caching.
|
openorb.cache.short.min |
The min (inclusive) Short value to cache (default -128). |
openorb.cache.short.max |
The max (inclusive) Short value to cache (default 127). |
openorb.cache.integer.min |
The min (inclusive) Integer value to cache (default -128). |
openorb.cache.integer.max |
The max (inclusive) Integer value to cache (default 127). |
openorb.cache.long.min |
The min (inclusive) Long value to cache (default -128). |
openorb.cache.long.max |
The max (inclusive) Long value to cache (default 127). |
Note that all Byte values are cached unless caching is disabled.
CharacterCache| Method Summary | |
static Byte |
getByte(byte value)
Gets the Byte instance for the specifed value. |
static Double |
getDouble(double value)
Gets the Double instance for the specifed value. |
static Float |
getFloat(float value)
Gets the Float instance for the specifed value. |
static Integer |
getInteger(int value)
Gets the Integer instance for the specifed value. |
static Long |
getLong(long value)
Gets the Long instance for the specifed value. |
static Short |
getShort(short value)
Gets the Short instance for the specifed value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Byte getByte(byte value)
Byte instance for the specifed value.value - the value for the objectByte instancepublic static Short getShort(short value)
Short instance for the specifed value.value - the value for the objectShort instancepublic static Integer getInteger(int value)
Integer instance for the specifed value.value - the value for the objectInteger instancepublic static Long getLong(long value)
Long instance for the specifed value.value - the value for the objectLong instancepublic static Float getFloat(float value)
Float instance for the specifed value.value - the value for the objectFloat instancepublic static Double getDouble(double value)
Double instance for the specifed value.value - the value for the objectDouble instance
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||