public static enum ReflectionUtils.DataType extends java.lang.Enum<ReflectionUtils.DataType>
| Enum Constant and Description |
|---|
BOOLEAN |
BYTE |
CHARACTER |
DOUBLE |
FLOAT |
INTEGER |
LONG |
SHORT |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
compare(java.lang.Class<?>[] primary,
java.lang.Class<?>[] secondary) |
static ReflectionUtils.DataType |
fromClass(java.lang.Class<?> clazz) |
java.lang.Class<?> |
getPrimitive() |
static java.lang.Class<?> |
getPrimitive(java.lang.Class<?> clazz) |
static java.lang.Class<?>[] |
getPrimitive(java.lang.Class<?>[] classes) |
static java.lang.Class<?>[] |
getPrimitive(java.lang.Object[] objects) |
java.lang.Class<?> |
getReference() |
static java.lang.Class<?> |
getReference(java.lang.Class<?> clazz) |
static java.lang.Class<?>[] |
getReference(java.lang.Class<?>[] classes) |
static java.lang.Class<?>[] |
getReference(java.lang.Object[] objects) |
static ReflectionUtils.DataType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReflectionUtils.DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReflectionUtils.DataType BYTE
public static final ReflectionUtils.DataType SHORT
public static final ReflectionUtils.DataType INTEGER
public static final ReflectionUtils.DataType LONG
public static final ReflectionUtils.DataType CHARACTER
public static final ReflectionUtils.DataType FLOAT
public static final ReflectionUtils.DataType DOUBLE
public static final ReflectionUtils.DataType BOOLEAN
public static ReflectionUtils.DataType[] values()
for (ReflectionUtils.DataType c : ReflectionUtils.DataType.values()) System.out.println(c);
public static ReflectionUtils.DataType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.Class<?> getPrimitive()
public java.lang.Class<?> getReference()
public static ReflectionUtils.DataType fromClass(java.lang.Class<?> clazz)
public static java.lang.Class<?> getPrimitive(java.lang.Class<?> clazz)
public static java.lang.Class<?> getReference(java.lang.Class<?> clazz)
public static java.lang.Class<?>[] getPrimitive(java.lang.Class<?>[] classes)
public static java.lang.Class<?>[] getReference(java.lang.Class<?>[] classes)
public static java.lang.Class<?>[] getPrimitive(java.lang.Object[] objects)
public static java.lang.Class<?>[] getReference(java.lang.Object[] objects)
public static boolean compare(java.lang.Class<?>[] primary,
java.lang.Class<?>[] secondary)