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