Class UuidTypeHandler
java.lang.Object
ch.tocco.nice2.types.spi.AbstractTypeHandler<UUID>
ch.tocco.nice2.types.spi.AbstractComparableTypeHandler<UUID>
ch.tocco.nice2.types.impl.handlers.UuidTypeHandler
- All Implemented Interfaces:
TypeHandler<UUID>
-
Field Summary
Fields inherited from class ch.tocco.nice2.types.spi.AbstractTypeHandler
baseHandler, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Should primarily be used for ordering instead of equality as some implementations are case-insensitive.Does not support/allow an empty value, thus returns null.boolean
boolean
boolean
Methods inherited from class ch.tocco.nice2.types.spi.AbstractTypeHandler
contains, init, isBoolean, isEqual, isolate, matches, 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
getGenerationType
-
Constructor Details
-
UuidTypeHandler
public UuidTypeHandler()
-
-
Method Details
-
asObject
- Throws:
StringConversionException
-
asString
- Specified by:
asString
in interfaceTypeHandler<UUID>
- Overrides:
asString
in classAbstractTypeHandler<UUID>
-
isNumeric
public boolean isNumeric()- See Also:
-
isChronological
public boolean isChronological()- See Also:
-
getEmptyValue
Does not support/allow an empty value, thus returns null.- Returns:
- Null
- See Also:
-
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<UUID>
- Overrides:
compare
in classAbstractComparableTypeHandler<UUID>
-
shouldBeUnique
public boolean shouldBeUnique()- Specified by:
shouldBeUnique
in interfaceTypeHandler<UUID>
- Overrides:
shouldBeUnique
in classAbstractTypeHandler<UUID>
- See Also:
-