public enum LongValueMapper extends Enum<LongValueMapper> implements ValueMapper<Long>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handles(Class<?> type)
Checks if given type is supported by this handler
|
Long |
transform(String value)
Returns converted value from a string
|
static LongValueMapper |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LongValueMapper[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LongValueMapper INSTANCE
public static LongValueMapper[] values()
for (LongValueMapper c : LongValueMapper.values()) System.out.println(c);
public static LongValueMapper 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 boolean handles(Class<?> type)
ValueMapperhandles in interface ValueMapper<Long>type - Type to be supportedtrue if this is supported, false otherwisepublic Long transform(String value)
ValueMappertransform in interface ValueMapper<Long>value - String value to be convertedCopyright © 2012 JBoss by Red Hat. All Rights Reserved.