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