| Modifier and Type | Field and Description |
|---|---|
static long[] |
EMPTY_LONG_ARRAY
Immutable empty array.
|
| Constructor and Description |
|---|
LongUtils()
Constructor that should not usually be used.
|
| Modifier and Type | Method and Description |
|---|---|
static Long |
toObject(long value)
Wraps an
long with an Object wrapper. |
static long |
toPrimitive(Object value)
Unwraps the
Long to retrieve the primitive long. |
static long[] |
toPrimitiveArray(Collection<?> coll)
Unwraps a
Collection to retrieve the primitive long. |
public static final long[] EMPTY_LONG_ARRAY
public LongUtils()
public static Long toObject(long value)
long with an Object wrapper.value - the primitive valuepublic static long toPrimitive(Object value)
Long to retrieve the primitive long.value - the Object wrapper, must not be nullNullPointerException - if the value if nullClassCastException - if the object is not Longpublic static long[] toPrimitiveArray(Collection<?> coll)
Collection to retrieve the primitive long.coll - the Collection of Long, must not be nullNullPointerException - if the collection if nullClassCastException - if any object is not LongCopyright © 2005-2012 Joda.org. All Rights Reserved.