Class 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 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.