se.unlogic.standardutils.datatypes
Class SimpleEntry<KeyType,ValueType>

java.lang.Object
  extended by se.unlogic.standardutils.datatypes.SimpleEntry<KeyType,ValueType>
All Implemented Interfaces:
Serializable, Map.Entry<KeyType,ValueType>

public class SimpleEntry<KeyType,ValueType>
extends Object
implements Map.Entry<KeyType,ValueType>, Serializable

See Also:
Serialized Form

Constructor Summary
SimpleEntry(KeyType key, ValueType value)
           
 
Method Summary
 boolean equals(Object obj)
           
 KeyType getKey()
           
 ValueType getValue()
           
 int hashCode()
           
 ValueType setValue(ValueType value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleEntry

public SimpleEntry(KeyType key,
                   ValueType value)
Method Detail

getValue

public ValueType getValue()
Specified by:
getValue in interface Map.Entry<KeyType,ValueType>

setValue

public ValueType setValue(ValueType value)
Specified by:
setValue in interface Map.Entry<KeyType,ValueType>

getKey

public KeyType getKey()
Specified by:
getKey in interface Map.Entry<KeyType,ValueType>

hashCode

public int hashCode()
Specified by:
hashCode in interface Map.Entry<KeyType,ValueType>
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Specified by:
equals in interface Map.Entry<KeyType,ValueType>
Overrides:
equals in class Object


Copyright © 2011. All Rights Reserved.