org.pentaho.reporting.engine.classic.core.util
Class IntegerCache
java.lang.Object
org.pentaho.reporting.engine.classic.core.util.IntegerCache
public class IntegerCache
- extends Object
A class that caches commonly used Integer-objects. This reduces the number of objects created when processing the
report. JDK 1.5 provides a similiar facility, but this cheap functionality is not worth upgrading to that JDK.
- Author:
- Thomas Morgner
Method Summary |
static Integer |
getInteger(int i)
Returns the integer-object for the given primitive integer. |
getInteger
public static Integer getInteger(int i)
- Returns the integer-object for the given primitive integer.
- Parameters:
i
- the primitive integer value.
- Returns:
- the constructed integer object.