public class CustomType<T> extends JaversType
<?>.
CustomPropertyComparator,
and registering this comparator (see JaversBuilder.registerCustomComparator(CustomPropertyComparator, Class)
is the only way to map a Custom Type.
DEFAULT_TYPE_PARAMETER| Constructor | Description |
|---|---|
CustomType(java.lang.reflect.Type baseJavaType,
CustomPropertyComparator<T,?> comparator) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
canBePrototype() |
|
boolean |
equals(java.lang.Object left,
java.lang.Object right) |
Used for comparing as Values
|
java.lang.Class |
getBaseJavaClass() |
|
protected java.lang.reflect.Type |
getRawDehydratedType() |
Type for JSON representation.
|
boolean |
isInstance(java.lang.Object cdo) |
equals, getBaseJavaType, getConcreteClassTypeArguments, getName, hashCode, isGenericType, prettyPrint, prettyPrintBuilder, toStringpublic CustomType(java.lang.reflect.Type baseJavaType,
CustomPropertyComparator<T,?> comparator)
public boolean equals(java.lang.Object left,
java.lang.Object right)
JaversTypeequals in class JaversTypepublic boolean canBePrototype()
canBePrototype in class JaversTypepublic boolean isInstance(java.lang.Object cdo)
isInstance in class JaversTypeprotected java.lang.reflect.Type getRawDehydratedType()
public java.lang.Class getBaseJavaClass()