Getter.Type
Constructor and Description |
---|
FieldGetter(java.lang.Class<E> objectClass,
java.lang.Class<T> fieldClass,
java.lang.reflect.Field field)
Create an instance of FieldGetter for the given object class, field class and field
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Allows equality comparsons between getters
|
T |
get(E object)
This method get the value from the underlying field or getter method
|
java.lang.String |
getAlias()
The alias of the field or getter method.
|
java.lang.Class<?> |
getDeclaringClass() |
java.lang.Class<T> |
getJavaType()
The type of the value returned by the call to get()
|
java.lang.Class<E> |
getThroughClass() |
Getter.Type |
getType()
This method returns the type of the getter, METHOD or FIELD
|
int |
hashCode()
Allows equality comparisons between getters
|
java.lang.String |
toString() |
public FieldGetter(java.lang.Class<E> objectClass, java.lang.Class<T> fieldClass, java.lang.reflect.Field field)
objectClass
- The class through which the getter will be invokedfieldClass
- The class of the objects identified by the fieldfield
- The field from which the getter will draw its valuepublic int hashCode()
Getter
public boolean equals(java.lang.Object obj)
Getter
public java.lang.String toString()
toString
in class java.lang.Object
public T get(E object)
Getter
public java.lang.Class<T> getJavaType()
Getter
getJavaType
in interface Getter<E,T>
public java.lang.String getAlias()
Getter
public Getter.Type getType()
Getter
public java.lang.Class<E> getThroughClass()
getThroughClass
in interface Getter<E,T>
public java.lang.Class<?> getDeclaringClass()
getDeclaringClass
in interface Getter<E,T>