Class ObjectToString.Enum<S extends Enum<S>>
java.lang.Object
org.apache.sis.internal.converter.ClassPair<S,T>
org.apache.sis.internal.converter.SystemConverter<S,String>
org.apache.sis.internal.converter.ObjectToString<S>
org.apache.sis.internal.converter.ObjectToString.Enum<S>
- All Implemented Interfaces:
Serializable,Function<S,,String> ObjectConverter<S,String>
- Enclosing class:
- ObjectToString<S>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.internal.converter.ObjectToString
ObjectToString.CodeList<S extends org.opengis.util.CodeList<S>>, ObjectToString.Enum<S extends Enum<S>> -
Field Summary
FieldsFields inherited from class org.apache.sis.internal.converter.ClassPair
sourceClass, targetClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the given code list element.Function is bijective, because no duplicated enum name shall exist.Methods inherited from class org.apache.sis.internal.converter.ObjectToString
inverse, uniqueMethods inherited from class org.apache.sis.internal.converter.SystemConverter
bijective, equals, formatErrorMessage, getSourceClass, getTargetClass, readResolveMethods inherited from class org.apache.sis.internal.converter.ClassPair
cast, hashCode, parentSource, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
Enum
Enum(Class<S> sourceClass, SystemConverter<String, S> inverse) Creates a new converter from the given type of enum to strings.
-
-
Method Details
-
properties
Function is bijective, because no duplicated enum name shall exist.- Specified by:
propertiesin interfaceObjectConverter<S extends Enum<S>,String> - Overrides:
propertiesin classObjectToString<S extends Enum<S>>- Returns:
- the manners in which source values are mapped to target values. May be an empty set, but never null.
-
apply
Returns the name of the given code list element.
-