public interface RowKeyValueConverter<K,V>
To fulfil the contract of ConcurrentMap it is essential that all key and value objects have valid implementations of equals() and hashCode().
Modifier and Type | Method and Description |
---|---|
V |
fromRowValue(RowValue value)
Converts a RowValue object to the custom application-specific object that should be used for values in this
table.
|
K |
fromStringKey(java.lang.String key)
Converts a string to the application-specific object that should be used for keys in this table.
|
RowValue |
toRowValue(V value)
Converts an application-specific row value object to a RowValue.
|
java.lang.String |
toStringKey(K key)
Converts an application-specific key object to a string.
|
V fromRowValue(RowValue value)
value
- the row value to convertRowValue toRowValue(V value)
value
- the row value to convertK fromStringKey(java.lang.String key)
Most maps use String or Object so there is usually nothing to do but a cast.
key
- the string representation of the keyjava.lang.String toStringKey(K key)
If the map is keyed by strings, this should simply return the argument cast to a String.
key
- the key to convertSubmit a bug or feature
Copyright (c) 2013-2015 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.