public class PropertyHolderBase<U extends java.lang.Enum<U> & Property<T>,T extends PropertyHolder<U>>
extends java.lang.Object
Constructor and Description |
---|
PropertyHolderBase(java.lang.String propertyName,
java.lang.String jsonField,
java.lang.Class<?> range,
java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
static void |
checkComparable(java.lang.Class<?> cls,
java.lang.Object instance) |
int |
compare(U property,
T o1,
T o2) |
static <U extends java.lang.Enum<U> & Property<?>,T extends PropertyHolder<U>> |
fromJsonString(java.lang.Class<U> cls,
java.lang.String field) |
java.util.Comparator<T> |
getComparator(U property) |
java.util.Comparator<T> |
getComparator(U property,
boolean reverse) |
java.lang.String |
getDescription() |
java.lang.String |
getJsonField() |
java.lang.String |
getPropertyName() |
java.lang.Class<?> |
getRange() |
boolean |
isDecimalNumber() |
boolean |
isNumeric() |
public PropertyHolderBase(java.lang.String propertyName, java.lang.String jsonField, java.lang.Class<?> range, java.lang.String description)
public java.lang.String getDescription()
public java.lang.String getPropertyName()
public java.lang.String getJsonField()
public java.lang.Class<?> getRange()
public boolean isNumeric()
public boolean isDecimalNumber()
public static void checkComparable(java.lang.Class<?> cls, java.lang.Object instance)
public static <U extends java.lang.Enum<U> & Property<?>,T extends PropertyHolder<U>> U fromJsonString(java.lang.Class<U> cls, java.lang.String field)