org.deduced
Class PropertyMapEntry<K,V>

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

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

Class representing a map entry object of a property collection. The value is returned as a property object

Author:
Steve McDuff

Field Summary
private  PropertyCollection<K,V> collection
          the property collection which is read by this entry
private  K key
          the key represented by this entry
 
Constructor Summary
PropertyMapEntry(K setKey, PropertyCollection<K,V> setCollection)
          constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          (non-Javadoc)
 K getKey()
          (non-Javadoc)
 Property<V> getValue()
          (non-Javadoc)
 int hashCode()
          (non-Javadoc)
 Property<V> setValue(Property<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
the key represented by this entry


collection

private final PropertyCollection<K,V> collection
the property collection which is read by this entry

Constructor Detail

PropertyMapEntry

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

Parameters:
setKey - the key represented by this entry
setCollection - the property collection which is read by this entry
Method Detail

getKey

public K getKey()
(non-Javadoc)

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

getValue

public Property<V> getValue()
(non-Javadoc)

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

equals

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

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

setValue

public Property<V> setValue(Property<V> value)
(non-Javadoc)

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

hashCode

public int hashCode()
(non-Javadoc)

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