public interface FieldHandle
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.Object instance)
Gets the current value of the field.
|
void |
set(java.lang.Object instance,
java.lang.Object newValue)
Updates the current value of the field.
|
java.lang.Object get(java.lang.Object instance)
java.lang.NullPointerException
- if the instance is nulljava.lang.ClassCastException
- if the instance is not the type that contains the fieldvoid set(java.lang.Object instance, java.lang.Object newValue)
java.lang.NullPointerException
- if the instance is nulljava.lang.NullPointerException
- if the newValue is null and the field is a primitive typejava.lang.ClassCastException
- if the instance is not the type that contains the fieldjava.lang.ClassCastException
- if the newValue is not assignable to the field type (or not the matching wrapper type
for a primitive field)${project.version} - Copyright © 2003-2015 The Apache Software Foundation.