Class IntegerPool


  • public class IntegerPool
    extends java.lang.Object
    Pool of reusable Integer objects.
    Since:
    MicroStrategy Web 8.1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      IntegerPool()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Integer get​(int x)
      Returns the corresponding Integer if available from the pool.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IntegerPool

        public IntegerPool()
    • Method Detail

      • get

        public static java.lang.Integer get​(int x)
        Returns the corresponding Integer if available from the pool. If not, a new instance is created.
        Parameters:
        x - int value
        Returns:
        corresponding Integer