C
- The Class containing the Field to be accessedpublic static class UnsafeFieldAccess.UnsafeIntFieldAccess<C> extends UnsafeFieldAccess<C>
UnsafeFieldAccess.UnsafeBooleanFieldAccess<C>, UnsafeFieldAccess.UnsafeByteFieldAccess<C>, UnsafeFieldAccess.UnsafeCharFieldAccess<C>, UnsafeFieldAccess.UnsafeDoubleFieldAccess<C>, UnsafeFieldAccess.UnsafeFloatFieldAccess<C>, UnsafeFieldAccess.UnsafeIntFieldAccess<C>, UnsafeFieldAccess.UnsafeLongFieldAccess<C>, UnsafeFieldAccess.UnsafeShortFieldAccess<C>
Constructor and Description |
---|
UnsafeIntFieldAccess(Field f)
Construct a new instance for the given Field
|
Modifier and Type | Method and Description |
---|---|
int |
getIntValue(C parent)
Retrieve the value of the field for the given instance
|
Integer |
getValue(C parent)
Retrieve the value of the field for the given instance
|
void |
putIntValue(C parent,
int newFieldValue)
Update the value of the field for the given instance
|
void |
putValue(C parent,
Object newFieldValue)
Update the value of the field for the given instance
|
declaringClass, field, fieldClass, fieldOffset, get, getBooleanValue, getByteValue, getCharValue, getDoubleValue, getFloatValue, getLongValue, getShortValue, putBooleanValue, putByteValue, putCharValue, putDoubleValue, putFloatValue, putLongValue, putShortValue
public UnsafeIntFieldAccess(Field f)
f
- The Field to be accessedpublic Integer getValue(C parent)
FieldAccess
getValue
in interface FieldAccess<C>
getValue
in class UnsafeFieldAccess<C>
parent
- The instance to access the field forpublic int getIntValue(C parent)
FieldAccess
getIntValue
in interface FieldAccess<C>
getIntValue
in class UnsafeFieldAccess<C>
parent
- The instance to access the field forpublic void putValue(C parent, Object newFieldValue)
FieldAccess
putValue
in interface FieldAccess<C>
putValue
in class UnsafeFieldAccess<C>
parent
- The instance to access the field fornewFieldValue
- The new valuepublic void putIntValue(C parent, int newFieldValue)
FieldAccess
putIntValue
in interface FieldAccess<C>
putIntValue
in class UnsafeFieldAccess<C>
parent
- The instance to access the field fornewFieldValue
- The new value as an intCopyright © 2010–2018 Jadira Systems. All rights reserved.