public class ShortUtils
extends java.lang.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 java.lang.Short |
toObject(short value)
Wraps an
short with an Object wrapper. |
static short |
toPrimitive(java.lang.Object value)
Unwraps the
Short to retrieve the primitive short. |
static short[] |
toPrimitiveArray(java.util.Collection<?> coll)
Unwraps a
Collection to retrieve the primitive short. |
public static java.lang.Short toObject(short value)
short with an Object wrapper.value - the primitive valuepublic static short toPrimitive(java.lang.Object value)
Short to retrieve the primitive short.value - the Object wrapper, must not be nulljava.lang.NullPointerException - if the value if nulljava.lang.ClassCastException - if the object is not Shortpublic static short[] toPrimitiveArray(java.util.Collection<?> coll)
Collection to retrieve the primitive short.coll - the Collection of Short, must not be nulljava.lang.NullPointerException - if the collection if nulljava.lang.ClassCastException - if any object is not ShortCopyright © 2005–2018 Joda.org. All rights reserved.