public enum DefaultNavigationParameterMapper extends Enum<DefaultNavigationParameterMapper> implements NavigationParameterMapper
NavigationParameterMapper implementation.| Enum Constant and Description |
|---|
INSTANCE
Singleton instance
|
| Modifier and Type | Method and Description |
|---|---|
<T> List<T> |
deserialize(Class<T> type,
List<String> values)
Deserialize given parameter
values. |
List<String> |
serialize(Object value)
Serialize given parameter
value. |
static DefaultNavigationParameterMapper |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultNavigationParameterMapper[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfdeserialize, getpublic static final DefaultNavigationParameterMapper INSTANCE
public static DefaultNavigationParameterMapper[] values()
for (DefaultNavigationParameterMapper c : DefaultNavigationParameterMapper.values()) System.out.println(c);
public static DefaultNavigationParameterMapper valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic List<String> serialize(Object value) throws InvalidNavigationParameterException
NavigationParameterMappervalue.serialize in interface NavigationParameterMappervalue - Parameter value (may be null)InvalidNavigationParameterException - If an error occurredpublic <T> List<T> deserialize(Class<T> type, List<String> values) throws InvalidNavigationParameterException
NavigationParameterMappervalues.deserialize in interface NavigationParameterMapperT - Parameter typetype - Parameter type (not null)values - The parameter values, empty if noneInvalidNavigationParameterException - If an error occurredCopyright © 2020 The Holon Platform. All rights reserved.