Package ch.tocco.nice2.types.spi
Interface TypeHandler<T>
- All Known Implementing Classes:
AbstractComparableTypeHandler
,AbstractDateTypeHandler
,AbstractTypeHandler
,AutoTimestampTypeHandler
,AutoUsernameTypeHandler
,BigDecimalTypeHandler
,BinaryTypeHandler
,BooleanTypeHandler
,ByteTypeHandler
,CharacterTypeHandler
,CoordinateTypeHandler
,CoordinateTypeHandler.LatDecimalTypeHandler
,CoordinateTypeHandler.LatitudeTypeHandler
,CoordinateTypeHandler.LngDecimalTypeHandler
,CoordinateTypeHandler.LongitudeTypeHandler
,CustomTypeHandler
,DateTimeTypeHandler
,DateTypeHandler
,DoubleTypeHandler
,DurationTypeHandler
,GlobTypeHandler
,IdentifierTypeHandler
,IntegerTypeHandler
,LoginTypeHandler
,LongTypeHandler
,MoneyAmountTypeHandler
,PasswordTypeHandler
,SerialTypeHandler
,StringTypeHandler
,TimeTypeHandler
,TypeHandlerWrapper
,UuidTypeHandler
,VersionTypeHandler
public interface TypeHandler<T>
-
Method Summary
Modifier and TypeMethodDescriptionint
Should primarily be used for ordering instead of equality as some implementations are case-insensitive.boolean
@Nullable Object
default Type.GenerationType
void
init
(TypeHandler<T> base, Type<T> type) boolean
boolean
boolean
boolean
boolean
boolean
boolean
-
Method Details
-
init
-
asString
-
asObject
- Throws:
StringConversionException
-
isolate
-
isNumeric
boolean isNumeric()- See Also:
-
isChronological
boolean isChronological()- See Also:
-
isBoolean
boolean isBoolean()- See Also:
-
shouldBeUnique
boolean shouldBeUnique()- See Also:
-
getEmptyValue
- See Also:
-
validate
- Throws:
ValidationException
- See Also:
-
isEqual
- Returns:
- true if both values are equal
-
compare
Should primarily be used for ordering instead of equality as some implementations are case-insensitive. -
matches
-
contains
-
getGenerationType
-