K - The Class of the key for this OneToOneMapV - The Class of the Value for this OneToOneMappublic class OneToOneMap<K,V>
extends java.lang.Object
| Constructor and Description | 
|---|
| OneToOneMap() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clear()Clears the OneToOneMap (removes all keys and values). | 
| boolean | containsKey(java.lang.Object key)Returns true if the OneToOneMap contains the given Key. | 
| boolean | containsValue(java.lang.Object value)Returns true if the OneToOneMap contains the given Value. | 
| V | get(java.lang.Object key)Returns the Value in the OneToOneMap for the given Key. | 
| K | getKeyFor(java.lang.Object key)Returns the Key in the OneToOneMap for the given Value. | 
| boolean | isEmpty()Returns true if the OneToOneMap is empty; false otherwise. | 
| java.util.Set<K> | keySet()Returns a Set of the keys for this OneToOneMap
 
 Note: Ownership of the Set is transferred to the calling Object;
 therefore, changes to the returned Set will NOT impact the OneToOneMap. | 
| V | put(K key,
   V value)Put the given value into this OneToOneMap for the given key. | 
| V | remove(java.lang.Object key)Removes the value from OneToOneMap for the given key. | 
| int | size()Returns the number of entries (key-value pairs) in the OneToOneMap. | 
| java.lang.String | toString()Returns a String representation of this OneToOneMap, primarily for
 purposes of debugging. | 
| java.util.Collection<V> | values()Returns a Collection of the values for this OneToOneMap. | 
public void clear()
public boolean containsKey(java.lang.Object key)
key - the Key to be tested to determine if it is present in the
            OneToOneMappublic boolean containsValue(java.lang.Object value)
value - the Value to be tested to determine if it is present in the
            OneToOneMappublic V get(java.lang.Object key)
key - the Key for which the Value should be returnedpublic K getKeyFor(java.lang.Object key)
key - the Value for which the Key should be returnedpublic boolean isEmpty()
public java.util.Set<K> keySet()
public V put(K key, V value)
key - The key for storing the given valuevalue - The value to be stored for the given keypublic V remove(java.lang.Object key)
key - The key used to identify which object to remove from thsi
            OneToOneMappublic int size()
public java.util.Collection<V> values()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()