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