|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
K
- the key type.V
- the value type.public interface MapEntryFormat<K,V>
This interface is used to represent formats for map entries.
Method Summary | ||
---|---|---|
|
formatKey(S key)
Returns a formatted string representation of the provided key. |
|
java.lang.String |
formatPair(java.util.Map.Entry<? extends K,? extends V> keyValuePair)
Returns a formatted string representation of the provided key-value pair. |
|
|
formatPair(S key,
T value)
Returns a formatted string representation of the provided key-value pair. |
|
|
formatValue(T value)
Returns a formatted string representation of the provided value. |
|
K |
parseKey(java.lang.String key)
Parses the provided string and returns its corresponding key. |
|
java.util.Map.Entry<K,V> |
parsePair(java.lang.String keyValuePair)
Parses the provided string and returns a corresponding map entry. |
|
V |
parseValue(java.lang.String value)
Parses the provided string and returns its corresponding value. |
Method Detail |
---|
<S extends K> java.lang.String formatKey(S key)
S
- a type that extends the primary key
type of this format.key
- the key to be formatted.
<T extends V> java.lang.String formatValue(T value)
T
- a type that extends the primary value
type of this format.value
- the value to be formatted.
<S extends K,T extends V> java.lang.String formatPair(S key, T value)
S
- a type extending the primary key type.T
- a type extending the primary value type.key
- the key.value
- the value.
java.lang.String formatPair(java.util.Map.Entry<? extends K,? extends V> keyValuePair)
keyValuePair
- the key-value pair
to be formatted.
K parseKey(java.lang.String key)
key
- a string representation of a key.
V parseValue(java.lang.String value)
value
- a string representation of a value.
java.util.Map.Entry<K,V> parsePair(java.lang.String keyValuePair)
keyValuePair
- a string representation of
a key-value pair, or in other words, a map entry.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |