public final class CharFieldInfo extends VanillaFieldInfo
bracketType, name, type| Constructor and Description |
|---|
CharFieldInfo(String name,
Class type,
BracketType bracketType,
@NotNull Field field) |
| Modifier and Type | Method and Description |
|---|---|
void |
copy(Object source,
Object destination)
Copy the field from the source object to the destination
|
char |
getChar(Object object)
Returns the value of the field represented by this
FieldInfo object
as a char primitive. |
protected long |
getOffset() |
boolean |
isEqual(Object a,
Object b) |
void |
set(Object object,
char value)
Sets the value of the field represented by this
FieldInfo object
to the provided value. |
genericType, get, getDouble, getField, getInt, getLong, lookupClass, set, set, set, setbracketType, equals, hashCode, name, toString, typeclone, finalize, getClass, notify, notifyAll, wait, wait, waitbracketType, createForField, name, typepublic CharFieldInfo(String name, Class type, BracketType bracketType, @NotNull @NotNull Field field)
public char getChar(Object object)
FieldInfoFieldInfo object
as a char primitive. The provided object is used as a target
to extract the field from.getChar in interface FieldInfogetChar in class VanillaFieldInfoFieldInfo object
as a char primitive.public void set(Object object, char value) throws IllegalArgumentException
FieldInfoFieldInfo object
to the provided value. The provided object is used as a
target to the extract eh field from.set in interface FieldInfoset in class VanillaFieldInfoIllegalArgumentExceptionpublic boolean isEqual(Object a, Object b)
isEqual in interface FieldInfoisEqual in class VanillaFieldInfopublic void copy(Object source, Object destination)
FieldInfoNote: this is not a deep copy, objects will be copied by reference
source - The object to copy the field value fromdestination - The object to copy the field value toprotected long getOffset()
throws NoSuchFieldException
NoSuchFieldExceptionCopyright © 2023. All rights reserved.