public class KittyReflectionUtils
extends java.lang.Object
Constructor and Description |
---|
KittyReflectionUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.reflect.Field |
getField(java.lang.Object obj,
java.lang.String fieldName)
Returns accessible field of object
|
static java.lang.String |
getSQLiteStringRepresentation(java.lang.Object object) |
static <M extends KittyModel> |
getStringRepresentationOfModelField(M model,
java.lang.String fieldName)
Returns string representation of provided field for provided kitty model object if possible.
|
static java.lang.String |
objectToString(java.lang.Object object) |
public static <M extends KittyModel> java.lang.String getStringRepresentationOfModelField(M model, java.lang.String fieldName) throws java.lang.NoSuchFieldException, java.lang.IllegalAccessException
M
- model
- fieldName
- java.lang.NoSuchFieldException
java.lang.IllegalAccessException
public static final java.lang.String objectToString(java.lang.Object object)
public static final java.lang.String getSQLiteStringRepresentation(java.lang.Object object)
public static final java.lang.reflect.Field getField(java.lang.Object obj, java.lang.String fieldName) throws java.lang.NoSuchFieldException
obj
- fieldName
- java.lang.NoSuchFieldException