public class KeyMapper<V> extends Object implements Serializable
KeyMapper
is the simple two-way map for generating textual keys
for objects and retrieving the objects later with the key.Constructor and Description |
---|
KeyMapper() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(String key)
Checks if the given key is mapped to an object.
|
V |
get(String key)
Retrieves object with the key.
|
String |
key(V o)
Gets key for an object.
|
void |
remove(V removeobj)
Removes object from the mapper.
|
void |
removeAll()
Removes all objects from the mapper.
|
public V get(String key)
key
- the name with the desired value.public void remove(V removeobj)
removeobj
- the object to be removed.public void removeAll()
public boolean containsKey(String key)
key
- the key to checktrue
if the key is currently mapped,
false
otherwiseCopyright © 2019 Vaadin Ltd. All rights reserved.