public interface GraphTypes
graph enum values with real Enum instances. In case this is not possible, the
GraphOutput.Builder allows one to
register an implementation of
this interface to treat them specially.| Modifier and Type | Method and Description |
|---|---|
Object |
enumClass(Object enumValue)
Recognizes an
enumobject. |
int |
enumOrdinal(Object obj)
Ordinal of an enum.
|
String[] |
enumTypeValues(Object maybeEnumClass)
All possible values of an enum.
|
String |
typeName(Object maybeClass)
Finds Java type name for a given class.
|
Object enumClass(Object enumValue)
enumobject. If the
enumValue object represents an enum, then an object
that represents its class shall be returned.enumValue - the value to testnull if the value isn't enum, otherwise its classint enumOrdinal(Object obj)
obj represents an enum, then return its ordinal
number otherwise return -1obj - the value to test-1 if the obj isn't enum, otherwise its ordinal numberString[] enumTypeValues(Object maybeEnumClass)
maybeEnumClass object represents
an enum, then compute enum value names in ordinal order and return them as a string array.
Otherwise return nullmaybeEnumClass - the class to testnull if the clazz isn't an enum, otherwise names of its values