|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.modelmapper.internal.util.Primitives
public final class Primitives
Utility methods for working with primitives.
Method Summary | |
---|---|
static Object |
defaultValue(Class<?> type)
Returns the default value for type if type is a primitive, else null. |
static boolean |
isPrimitive(Class<?> type)
Returns true if type is a primitive or a primitive wrapper. |
static boolean |
isPrimitiveWrapper(Class<?> type)
Returns true if type is a primitive wrapper. |
static Class<?> |
wrapperFor(Class<?> type)
Returns the primitive wrapper for type , else returns type if type is
not a primitive. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Object defaultValue(Class<?> type)
type
if type
is a primitive, else null.
public static boolean isPrimitive(Class<?> type)
type
is a primitive or a primitive wrapper.
public static Class<?> wrapperFor(Class<?> type)
type
, else returns type
if type
is
not a primitive.
public static boolean isPrimitiveWrapper(Class<?> type)
type
is a primitive wrapper.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |