|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.jibx.binding.util.IntegerCache
public abstract class IntegerCache
Cache of Integer values. This is designed on the assumption that
clients will start with zero and work their way up from there. By holding
created instances in an array it allows for full reuse.
| Field Summary | |
|---|---|
private static java.lang.Integer[] |
s_integers
Initial set of index values supported. |
| Constructor Summary | |
|---|---|
IntegerCache()
|
|
| Method Summary | |
|---|---|
static java.lang.Integer |
getInteger(int value)
Get Integer for value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static java.lang.Integer[] s_integers
| Constructor Detail |
|---|
public IntegerCache()
| Method Detail |
|---|
public static java.lang.Integer getInteger(int value)
Integer for value.
value - non-negative integer value
Integer value
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||