public final class BoxedNumbers extends Object
| Modifier and Type | Field and Description |
|---|---|
static Set<? extends Class<?>> |
FLOAT_CLASSES
The constant FLOAT_CLASSES.
|
static Set<Class<? extends Number>> |
INTEGER_CLASSES
The constant INTEGER_CLASSES.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
convertSafely(Object value,
Class<T> toClass)
Convert safely.
|
static boolean |
isBoxedNumber(Object value)
Is boxed number.
|
static boolean |
isBoxedNumberClass(Class<?> cls)
Is boxed number class.
|
static boolean |
isConvertible(Class<?> fromClass,
Class<?> toClass)
Is convertible.
|
public static final Set<Class<? extends Number>> INTEGER_CLASSES
public static boolean isBoxedNumberClass(Class<?> cls)
cls - the clspublic static boolean isBoxedNumber(Object value)
value - the valuepublic static boolean isConvertible(Class<?> fromClass, Class<?> toClass)
fromClass - the from classtoClass - the to classCopyright © 2014 Boleslav Bobcik - Auderis. All rights reserved.