Package org.jibx.binding.util
Class IntegerCache
java.lang.Object
org.jibx.binding.util.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.- Version:
- 1.0
- Author:
- Dennis M. Sosnoski
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
s_integers
Initial set of index values supported.
-
-
Constructor Details
-
IntegerCache
public IntegerCache()
-
-
Method Details
-
getInteger
GetInteger
for value.- Parameters:
value
- non-negative integer value- Returns:
- corresponding
Integer
value
-