public class MetaUtils extends Object
| Constructor and Description |
|---|
MetaUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Field> |
getDeepDeclaredFields(Class c) |
static int |
getDistance(Class a,
Class b) |
static Field |
getField(Class c,
String field)
Return an instance of of the Java Field class corresponding to the passed in field name.
|
static boolean |
isLogicalPrimitive(Class c) |
static boolean |
isPrimitive(Class c) |
static void |
setUseUnsafe(boolean state) |
public static void setUseUnsafe(boolean state)
public static Field getField(Class c, String field)
c - class containing the field / field namefield - String name of a field on the class.public static Map<String,Field> getDeepDeclaredFields(Class c)
c - Class instancepublic static int getDistance(Class a, Class b)
a - Class source classb - Class target classpublic static boolean isPrimitive(Class c)
c - Class to testpublic static boolean isLogicalPrimitive(Class c)
c - Class to testCopyright © 2015. All rights reserved.