|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.joda.primitives.LongUtils
public class LongUtils
Provides utility methods and constants for long
.
Field Summary | |
---|---|
static long[] |
EMPTY_LONG_ARRAY
Immutable empty array. |
Constructor Summary | |
---|---|
LongUtils()
Constructor that should not usually be used. |
Method Summary | |
---|---|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long[] EMPTY_LONG_ARRAY
Constructor Detail |
---|
public LongUtils()
Method Detail |
---|
public static Long toObject(long value)
long
with an Object wrapper.
value
- the primitive value
public static long toPrimitive(Object value)
Long
to retrieve the primitive long
.
value
- the Object wrapper, must not be null
NullPointerException
- if the value if null
ClassCastException
- if the object is not Long
public static long[] toPrimitiveArray(Collection<?> coll)
Collection
to retrieve the primitive long
.
coll
- the Collection of Long, must not be null
NullPointerException
- if the collection if null
ClassCastException
- if any object is not Long
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |