Package ch.tocco.nice2.types.spi
Class AbstractComparableTypeHandler<T extends Comparable<T>>
java.lang.Object
ch.tocco.nice2.types.spi.AbstractTypeHandler<T>
ch.tocco.nice2.types.spi.AbstractComparableTypeHandler<T>
- All Implemented Interfaces:
TypeHandler<T>
- Direct Known Subclasses:
AbstractDateTypeHandler
,BigDecimalTypeHandler
,BooleanTypeHandler
,ByteTypeHandler
,CharacterTypeHandler
,DoubleTypeHandler
,IntegerTypeHandler
,LoginTypeHandler
,LongTypeHandler
,StringTypeHandler
,UuidTypeHandler
public abstract class AbstractComparableTypeHandler<T extends Comparable<T>>
extends AbstractTypeHandler<T>
-
Field Summary
Fields inherited from class ch.tocco.nice2.types.spi.AbstractTypeHandler
baseHandler, type
-
Constructor Summary
-
Method Summary
Methods inherited from class ch.tocco.nice2.types.spi.AbstractTypeHandler
asString, contains, init, isBoolean, isEqual, isolate, matches, shouldBeUnique, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.types.spi.TypeHandler
asObject, getEmptyValue, getGenerationType, isChronological, isNumeric
-
Constructor Details
-
AbstractComparableTypeHandler
public AbstractComparableTypeHandler()
-
-
Method Details
-
compare
Description copied from interface:TypeHandler
Should primarily be used for ordering instead of equality as some implementations are case-insensitive.- Specified by:
compare
in interfaceTypeHandler<T extends Comparable<T>>
- Overrides:
compare
in classAbstractTypeHandler<T extends Comparable<T>>
-