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