Package org.jibx.binding.util
Class IntegerCache
- java.lang.Object
-
- org.jibx.binding.util.IntegerCache
-
public abstract class IntegerCache extends java.lang.Object
Cache ofInteger
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.- Version:
- 1.0
- Author:
- Dennis M. Sosnoski
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.Integer[]
s_integers
Initial set of index values supported.
-
Constructor Summary
Constructors Constructor Description IntegerCache()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Integer
getInteger(int value)
GetInteger
for value.
-