public abstract class IntegerCache
extends java.lang.Object
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.Modifier and Type | Field and Description |
---|---|
private static java.lang.Integer[] |
s_integers
Initial set of index values supported.
|
Constructor and Description |
---|
IntegerCache() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Integer |
getInteger(int value)
Get
Integer for value. |