com.vaadin.server
Class KeyMapper<V>

java.lang.Object
  extended by com.vaadin.server.KeyMapper<V>
All Implemented Interfaces:
java.io.Serializable

public class KeyMapper<V>
extends java.lang.Object
implements java.io.Serializable

KeyMapper is the simple two-way map for generating textual keys for objects and retrieving the objects later with the key.

Since:
3.0
Author:
Vaadin Ltd.
See Also:
Serialized Form

Constructor Summary
KeyMapper()
           
 
Method Summary
 V get(java.lang.String key)
          Retrieves object with the key.
 java.lang.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyMapper

public KeyMapper()
Method Detail

key

public java.lang.String key(V o)
Gets key for an object.

Parameters:
o - the object.

get

public V get(java.lang.String key)
Retrieves object with the key.

Parameters:
key - the name with the desired value.
Returns:
the object with the key.

remove

public void remove(V removeobj)
Removes object from the mapper.

Parameters:
removeobj - the object to be removed.

removeAll

public void removeAll()
Removes all objects from the mapper.



Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.