public class RegionShortcutConverter extends Object implements Converter<String,RegionShortcut>
Converter
,
RegionShortcut
Constructor and Description |
---|
RegionShortcutConverter() |
Modifier and Type | Method and Description |
---|---|
RegionShortcut |
convert(String source)
Converts the source String representation of a Region Shortcut into a RegionShortcut enumerated value.
|
protected static String |
toUpperCase(String value)
Converts the String value to upper case, trimming all whitespace.
|
protected static String toUpperCase(String value)
value
- the String to convert to a trimmed, upper case value.String.toUpperCase()
,
String.trim()
,
String.valueOf(Object)
public RegionShortcut convert(String source)
convert
in interface Converter<String,RegionShortcut>
source
- the String representation of the Region Shortcut to convert.IllegalArgumentException
- if the String source is not a valid RegionShortcut enumerated value.RegionShortcut.valueOf(String)