Returns an Integer
instance representing the specified
int
value. If a new Integer
instance is not
required, this method should generally be used in preference to
the constructor Integer(int)
, as this method is likely
to yield significantly better space and time performance by
caching frequently requested values.
This method will always cache values in the range -128 to 127,
inclusive, and may cache other values outside of this range.
i | an int value. |
Integer
instance representing i
.
Diagram: Number