com.partnersoft.data
Class MapEntry<K,V>

java.lang.Object
  extended by com.partnersoft.data.MapEntry<K,V>
All Implemented Interfaces:
java.util.Map.Entry<K,V>

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

A simple, read-only implementation of Map.Entry.

Copyright 2003-2006 Partner Software, Inc.

Version:
$Id: MapEntry.java 1012 2007-11-24 18:30:02Z paul $
Author:
Paul Reavis

Constructor Summary
MapEntry(K key, V value)
          Constructs a new MapEntry with the given key and value.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 K getKey()
           
 V getValue()
           
 int hashCode()
           
 V setValue(V value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapEntry

public MapEntry(K key,
                V value)
Constructs a new MapEntry with the given key and value. /shrug.

Parameters:
key - the key
value - the value
Method Detail

equals

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

hashCode

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

setValue

public V setValue(V value)
Specified by:
setValue in interface java.util.Map.Entry<K,V>

getKey

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

getValue

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