public abstract class AbstractFieldInfo extends Object implements FieldInfo
| Modifier and Type | Field and Description |
|---|---|
protected BracketType |
bracketType |
protected String |
name |
protected Class<?> |
type |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFieldInfo(Class<?> type,
BracketType bracketType,
String name)
Constructs a new AbstractFieldInfo with the provided type, bracket type, and name.
|
| Modifier and Type | Method and Description |
|---|---|
BracketType |
bracketType()
Returns the
BracketType used by the serialization strategy associated
with this FieldInfo object. |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
name()
Returns the name of the field represented by this
FieldInfo object. |
String |
toString() |
Class<?> |
type()
Returns a
Class identifying the declared type of the field
represented by this FieldInfo object. |
protected final String name
protected final Class<?> type
protected final BracketType bracketType
protected AbstractFieldInfo(Class<?> type, BracketType bracketType, String name)
type - The class type of the fieldbracketType - The bracket type associated with the fieldname - The name of the fieldpublic String name()
FieldInfoFieldInfo object.public Class<?> type()
FieldInfoClass identifying the declared type of the field
represented by this FieldInfo object.public BracketType bracketType()
FieldInfoBracketType used by the serialization strategy associated
with this FieldInfo object.bracketType in interface FieldInfoBracketType used by the serialization strategy associated
with this FieldInfo object.Copyright © 2024. All rights reserved.