org.deduced
Class ValueMapEntry<K,V>

java.lang.Object
  extended by org.deduced.ValueMapEntry<K,V>
Type Parameters:
K - the type of keys in the value map
V - the type of values in the map
All Implemented Interfaces:
java.util.Map.Entry<K,V>

 class ValueMapEntry<K,V>
extends java.lang.Object
implements java.util.Map.Entry<K,V>

Map entry class representing a property value in a property collection

Author:
Steve McDuff

Field Summary
private  PropertyCollection<K,V> collection
          the property collection in which to fetch the value
private  K key
          key of the value to which the entry is bound
 
Constructor Summary
ValueMapEntry(K setKey, PropertyCollection<K,V> setCollection)
          constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          (non-Javadoc)
 K getKey()
          (non-Javadoc)
 V getValue()
          (non-Javadoc)
 int hashCode()
          (non-Javadoc)
 V setValue(V value)
          (non-Javadoc)
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

private final K key
key of the value to which the entry is bound


collection

private final PropertyCollection<K,V> collection
the property collection in which to fetch the value

Constructor Detail

ValueMapEntry

public ValueMapEntry(K setKey,
                     PropertyCollection<K,V> setCollection)
constructor

Parameters:
setKey - key of the value to which the entry is bound
setCollection - the property collection in which to fetch the value
Method Detail

getKey

public K getKey()
(non-Javadoc)

Specified by:
getKey in interface java.util.Map.Entry<K,V>
See Also:
Map.Entry.getKey()

getValue

public V getValue()
(non-Javadoc)

Specified by:
getValue in interface java.util.Map.Entry<K,V>
See Also:
Map.Entry.getValue()

setValue

public V setValue(V value)
(non-Javadoc)

Specified by:
setValue in interface java.util.Map.Entry<K,V>
See Also:
Map.Entry.setValue(java.lang.Object)

equals

public boolean equals(java.lang.Object obj)
(non-Javadoc)

Specified by:
equals in interface java.util.Map.Entry<K,V>
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
(non-Javadoc)

Specified by:
hashCode in interface java.util.Map.Entry<K,V>
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()