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 FieldAccessor
Returns theFieldAccessor
instance 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 theFieldAccessor
instance suitable for the JDK running this code.- Returns:
- a
FieldAccessor
instance
-