public class SimpleKeyFormat<K> extends Object implements KeyFormat<K>
KeyFormat for keys with a simple string representation.| Constructor and Description |
|---|
SimpleKeyFormat(Class<K> targetClass,
Function<String,K> parser) |
SimpleKeyFormat(Class<K> targetClass,
Function<String,K> parser,
Function<K,String> formatter) |
| Modifier and Type | Method and Description |
|---|---|
String |
format(K key)
Formats the specified key to a string representation.
|
Class<K> |
getTargetClass()
The implementation class of the target key of this format.
|
K |
parse(String value)
Parses the key from the specified string.
|
public Class<K> getTargetClass()
KeyFormatgetTargetClass in interface KeyFormat<K>public K parse(String value)
KeyFormatCopyright © 2018 JBoss by Red Hat. All rights reserved.