public interface ReadMutator extends ClassMutator
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReadFields(Class<?> klass,
Object obj) |
<T> List<String> |
fields(Class<?> klass,
Object obj)
Try to determine a list of fields to be serialized.
|
Object |
get(Class<?> klass,
Object instance,
String field)
Gets the value of the given field from the provided instance
Preferably without using the Class object
|
boolean canReadFields(Class<?> klass, Object obj)
klass - the class to checkobj - the instance of the class to checkObject get(Class<?> klass, Object instance, String field)
instance - the instance to get the value fromklass - the class of the instancefield - the field to get @return The value of the given fieldCopyright © 2012-2015. All Rights Reserved.