Class IntegerCache


  • public abstract class IntegerCache
    extends Object
    Cache of Integer values. This is designed on the assumption that clients will start with zero and work their way up from there. By holding created instances in an array it allows for full reuse.
    Version:
    1.0
    Author:
    Dennis M. Sosnoski
    • Constructor Detail

      • IntegerCache

        public IntegerCache()
    • Method Detail

      • getInteger

        public static Integer getInteger​(int value)
        Get Integer for value.
        Parameters:
        value - non-negative integer value
        Returns:
        corresponding Integer value