public class

IntegerPool

extends Object
java.lang.Object
   ↳ com.microstrategy.utils.IntegerPool

Class Overview

Pool of reusable Integer objects.

Summary

Public Constructors
IntegerPool()
Public Methods
static Integer get(int x)
Returns the corresponding Integer if available from the pool.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public IntegerPool ()

Public Methods

public static 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