public static enum ReflectionUtils.DataType extends Enum<ReflectionUtils.DataType>
Enum Constant and Description |
---|
BOOLEAN |
BYTE |
CHARACTER |
DOUBLE |
FLOAT |
INTEGER |
LONG |
SHORT |
Modifier and Type | Method and Description |
---|---|
static boolean |
compare(Class<?>[] primary,
Class<?>[] secondary) |
static ReflectionUtils.DataType |
fromClass(Class<?> clazz) |
Class<?> |
getPrimitive() |
static Class<?> |
getPrimitive(Class<?> clazz) |
static Class<?>[] |
getPrimitive(Class<?>[] classes) |
static Class<?>[] |
getPrimitive(Object[] objects) |
Class<?> |
getReference() |
static Class<?> |
getReference(Class<?> clazz) |
static Class<?>[] |
getReference(Class<?>[] classes) |
static Class<?>[] |
getReference(Object[] objects) |
static ReflectionUtils.DataType |
valueOf(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Class<?> getPrimitive()
public Class<?> getReference()
public static ReflectionUtils.DataType fromClass(Class<?> clazz)
Copyright © 2020. All rights reserved.