T
- the type of value objectpublic static interface TypeSystem.TypeFactory<T>
Modifier and Type | Method and Description |
---|---|
String |
asReadableString(Object value)
Get a readable and potentially shorter string representation of the supplied value.
|
String |
asString(Object value)
Get the string representation of the supplied value.
|
T |
create(Object value)
Create the typed representation of the value given the supplied object representation.
|
T |
create(String value)
Create the typed representation of the value given the supplied string representation.
|
Comparator<T> |
getComparator()
Get a comparator that can be used to store the values of this type.
|
Class<T> |
getType()
Get the class representing the value type.
|
String |
getTypeName()
Get the name of the type created by this factory.
|
long |
length(Object value)
Get the length of the supplied value.
|
Class<T> getType()
Comparator<T> getComparator()
String getTypeName()
T create(String value) throws ValueFormatException
value
- the string representation of the valuetype
ValueFormatException
- if the string cannot be converted to a typed valueT create(Object value) throws ValueFormatException
value
- the object representation of the valuetype
ValueFormatException
- if the object cannot be converted to a typed valueString asString(Object value)
value
- the valuelong length(Object value)
value
- the valueCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.