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