Package org.github.jamm.accessors
Interface FieldAccessor
public interface FieldAccessor
Utility to retrieve
Field values.-
Method Summary
Modifier and TypeMethodDescriptiongetFieldValue(Object object, Field field) Returns the field value for the given objectstatic FieldAccessorReturns theFieldAccessorinstance suitable for the JDK running this code.
-
Method Details
-
getFieldValue
Returns the field value for the given object- Parameters:
object- the object for which the field value must be returnedfield- the field to access- Returns:
- the field value for the given object
-
newInstance
Returns theFieldAccessorinstance suitable for the JDK running this code.- Returns:
- a
FieldAccessorinstance
-