public interface FieldInfo
| Modifier and Type | Method and Description |
|---|---|
BracketType |
bracketType()
Returns the
BracketType used by the serialization strategy associated
with this FieldInfo object. |
default void |
copy(Object source,
Object destination)
Copy the field from the source object to the destination
|
static FieldInfo |
createForField(String name,
Class<?> type,
BracketType bracketType,
@NotNull Field field) |
Class<?> |
genericType(int index)
Returns a
Class identifying the declared generic type of the
field represented by this FieldInfo object. |
@Nullable Object |
get(Object object)
Returns the value of the field represented by this
FieldInfo object
as an Object. |
char |
getChar(Object object)
Returns the value of the field represented by this
FieldInfo object
as a char primitive. |
double |
getDouble(Object object)
Returns the value of the field represented by this
FieldInfo object
as a double primitive. |
int |
getInt(Object object)
Returns the value of the field represented by this
FieldInfo object
as an int primitive. |
long |
getLong(Object object)
Returns the value of the field represented by this
FieldInfo object
as a long primitive. |
boolean |
isEqual(Object a,
Object b) |
static net.openhft.chronicle.wire.Wires.FieldInfoPair |
lookupClass(@NotNull Class<?> aClass) |
String |
name()
Returns the name of the field represented by this
FieldInfo object. |
void |
set(Object object,
char value)
Sets the value of the field represented by this
FieldInfo object
to the provided value. |
void |
set(Object object,
double value)
Sets the value of the field represented by this
FieldInfo object
to the provided value. |
void |
set(Object object,
int value)
Sets the value of the field represented by this
FieldInfo object
to the provided value. |
void |
set(Object object,
long value)
Sets the value of the field represented by this
FieldInfo object
to the provided value. |
void |
set(Object object,
Object value)
Sets the value of the field represented by this
FieldInfo object
to the provided value. |
Class<?> |
type()
Returns a
Class identifying the declared type of the field
represented by this FieldInfo object. |
static FieldInfo createForField(String name, Class<?> type, BracketType bracketType, @NotNull @NotNull Field field)
@NotNull
static net.openhft.chronicle.wire.Wires.FieldInfoPair lookupClass(@NotNull
@NotNull Class<?> aClass)
String name()
FieldInfo object.FieldInfo object.Class<?> type()
Class identifying the declared type of the field
represented by this FieldInfo object.Class identifying the declared type of the field
represented by this FieldInfo object.BracketType bracketType()
BracketType used by the serialization strategy associated
with this FieldInfo object.BracketType used by the serialization strategy associated
with this FieldInfo object.@Nullable @Nullable Object get(Object object)
FieldInfo object
as an Object. The provided object is used as a target to
extract the field from.FieldInfo object
as an Object.long getLong(Object object)
FieldInfo object
as a long primitive. The provided object is used as a target
to extract the field from.FieldInfo object
as a long primitive.int getInt(Object object)
FieldInfo object
as an int primitive. The provided object is used as a target
to extract the field from.FieldInfo object
as an int primitive.char getChar(Object object)
FieldInfo object
as a char primitive. The provided object is used as a target
to extract the field from.FieldInfo object
as a char primitive.double getDouble(Object object)
FieldInfo object
as a double primitive. The provided object is used as a target
to extract the field from.FieldInfo object
as a double primitive.void set(Object object, Object value) throws IllegalArgumentException
FieldInfo object
to the provided value. The provided object is used as a
target to the extract eh field from.IllegalArgumentExceptionvoid set(Object object, char value) throws IllegalArgumentException
FieldInfo object
to the provided value. The provided object is used as a
target to the extract eh field from.IllegalArgumentExceptionvoid set(Object object, int value) throws IllegalArgumentException
FieldInfo object
to the provided value. The provided object is used as a
target to the extract eh field from.IllegalArgumentExceptionvoid set(Object object, long value) throws IllegalArgumentException
FieldInfo object
to the provided value. The provided object is used as a
target to the extract eh field from.IllegalArgumentExceptionvoid set(Object object, double value) throws IllegalArgumentException
FieldInfo object
to the provided value. The provided object is used as a
target to the extract eh field from.IllegalArgumentExceptionClass<?> genericType(int index)
Class identifying the declared generic type of the
field represented by this FieldInfo object.Class identifying the declared generic type of the
field represented by this FieldInfo object.default void copy(Object source, Object destination)
Note: 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 toCopyright © 2023. All rights reserved.