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.
    Thomas Morgner
    • Method Detail

      • getInteger

        public static Integer getInteger​(int i)
        Returns the integer-object for the given primitive integer.
        i - the primitive integer value.
        the constructed integer object.