Package opennlp.tools.ml.maxent
Class IntegerPool
- java.lang.Object
-
- opennlp.tools.ml.maxent.IntegerPool
-
public class IntegerPool extends java.lang.Object
A pool of read-only, unsigned Integer objects within a fixed, non-sparse range. Use this class for operations in which a large number of Integer wrapper objects will be created.
-
-
Constructor Summary
Constructors Constructor Description IntegerPool(int size)
Creates an IntegerPool with 0..size Integer objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
get(int value)
Returns the shared Integer wrapper for value if it is inside the range managed by this pool.
-