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 AbstractTypeHandler
baseHandler, type -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractTypeHandler
asString, contains, init, isBoolean, isEqual, isolate, matches, shouldBeUnique, validateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TypeHandler
asObject, getEmptyValue, getGenerationType, isChronological, isNumeric
-
Constructor Details
-
AbstractComparableTypeHandler
public AbstractComparableTypeHandler()
-
-
Method Details
-
compare
Description copied from interface:TypeHandlerShould primarily be used for ordering instead of equality as some implementations are case-insensitive.- Specified by:
comparein interfaceTypeHandler<T extends Comparable<T>>- Overrides:
comparein classAbstractTypeHandler<T extends Comparable<T>>
-