public class Numbers
extends Object
Number utilities.
-
Field Summary
Fields
private static final Long
private static final Long[]
-
Constructor Summary
Constructors
-
Method Summary
Return the wrapper for the given number, taking advantage of cached
common values.
Return the wrapper for the given number, taking advantage of cached
common values.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
INT_NEGONE
private static final Integer INT_NEGONE
-
LONG_NEGONE
private static final Long LONG_NEGONE
-
INTEGERS
private static final Integer[] INTEGERS
-
LONGS
private static final Long[] LONGS
-
-
Method Details
-
valueOf
public static Integer valueOf(int n)
Return the wrapper for the given number, taking advantage of cached
common values.
-
valueOf
public static Long valueOf(long n)
Return the wrapper for the given number, taking advantage of cached
common values.