C
- The Class containing the Field to be accessedpublic static class UnsafeFieldAccess.UnsafeByteFieldAccess<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 |
---|
UnsafeByteFieldAccess(Field f)
Construct a new instance for the given Field
|
Modifier and Type | Method and Description |
---|---|
byte |
getByteValue(C parent)
Retrieve the value of the field for the given instance
|
Byte |
getValue(C parent)
Retrieve the value of the field for the given instance
|
void |
putByteValue(C parent,
byte 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, getCharValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getShortValue, putBooleanValue, putCharValue, putDoubleValue, putFloatValue, putIntValue, putLongValue, putShortValue
public UnsafeByteFieldAccess(Field f)
f
- The Field to be accessedpublic Byte getValue(C parent)
FieldAccess
getValue
in interface FieldAccess<C>
getValue
in class UnsafeFieldAccess<C>
parent
- The instance to access the field forpublic byte getByteValue(C parent)
FieldAccess
getByteValue
in interface FieldAccess<C>
getByteValue
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 putByteValue(C parent, byte newFieldValue)
FieldAccess
putByteValue
in interface FieldAccess<C>
putByteValue
in class UnsafeFieldAccess<C>
parent
- The instance to access the field fornewFieldValue
- The new value as a byteCopyright © 2010–2018 Jadira Systems. All rights reserved.