public class LargeNumberCache
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.Integer[] |
integerCache |
private static int |
integerCacheLimit |
Constructor and Description |
---|
LargeNumberCache() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Integer |
valueOf(int i)
Returns a Integer instance representing the specified int value.
|
private static final int integerCacheLimit
private static final java.lang.Integer[] integerCache
public static final java.lang.Integer valueOf(int i)
#Integer(int)
, as this method is likely to yield
significantly better space and time performance by caching
frequently requested values.i
- an int value.