public class IBeanFieldMetaInfo extends Object
This class is created via constructor and is then immutable.
| Constructor and Description |
|---|
IBeanFieldMetaInfo(String fieldName,
Class<?> fieldType,
Method getterMethod,
Method setterMethod,
int ordinal)
Creates a new
IBeanFieldMetaInfo by providing all required meta
information. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares this instance with any other object, preferably with another
IBeanFieldMetaInfo. |
String |
fieldName()
Provides the name of the field belonging to the IBean type.
|
Class<?> |
fieldType()
Provides the type of the field.
|
Method |
getterMethod()
Provides the getter method in the bean type related to the field.
|
int |
hashCode() |
int |
ordinal()
Provides the sorting index of the field within its
IBeanTypeMetaInfo. |
Method |
setterMethod()
Provides the setter method in the bean type related to the field.
|
String |
toString() |
public IBeanFieldMetaInfo(String fieldName, Class<?> fieldType, Method getterMethod, Method setterMethod, int ordinal)
IBeanFieldMetaInfo by providing all required meta
information.fieldName - the case-sensitive name of the fieldfieldType - the type of the fieldgetterMethod - the related getter method in the bean typesetterMethod - the related setter method in the bean typeordinal - the sorting index of the field within its
IBeanTypeMetaInfopublic String fieldName()
public Method getterMethod()
Method contained in the bean interfacepublic Method setterMethod()
Method contained in the bean interfacepublic Class<?> fieldType()
void is forbidden.public int ordinal()
IBeanTypeMetaInfo.public boolean equals(Object obj)
IBeanFieldMetaInfo. Two IBeanFieldMetaInfo are considered
equal if field name, field type and ordinal are equal.equals in class ObjectObject.equals(java.lang.Object)