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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Integer
getInteger(int i)
Returns the integer-object for the given primitive integer.
-
-
-
Method Detail
-
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.
-
-