Package ch.tocco.nice2.types.spi
Class AbstractTypeHandler<T>
java.lang.Object
ch.tocco.nice2.types.spi.AbstractTypeHandler<T>
- All Implemented Interfaces:
TypeHandler<T>
- Direct Known Subclasses:
AbstractComparableTypeHandler,BinaryTypeHandler,CoordinateTypeHandler,CustomTypeHandler,GlobTypeHandler,PasswordTypeHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintShould primarily be used for ordering instead of equality as some implementations are case-insensitive.booleanvoidinit(TypeHandler<T> base, Type<T> type) booleanbooleanbooleanbooleanbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.tocco.nice2.types.spi.TypeHandler
asObject, getEmptyValue, getGenerationType, isChronological, isNumeric
-
Field Details
-
baseHandler
-
type
-
-
Constructor Details
-
AbstractTypeHandler
public AbstractTypeHandler()
-
-
Method Details
-
init
- Specified by:
initin interfaceTypeHandler<T>
-
asString
- Specified by:
asStringin interfaceTypeHandler<T>
-
isolate
- Specified by:
isolatein interfaceTypeHandler<T>
-
validate
- Specified by:
validatein interfaceTypeHandler<T>- Throws:
ValidationException- See Also:
-
isEqual
- Specified by:
isEqualin interfaceTypeHandler<T>- Returns:
- true if both values are equal
-
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>
-
matches
- Specified by:
matchesin interfaceTypeHandler<T>
-
contains
- Specified by:
containsin interfaceTypeHandler<T>
-
isBoolean
public boolean isBoolean()- Specified by:
isBooleanin interfaceTypeHandler<T>- See Also:
-
shouldBeUnique
public boolean shouldBeUnique()- Specified by:
shouldBeUniquein interfaceTypeHandler<T>- See Also:
-