com.partnersoft.data
Class MapEntry<K,V>
java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
MapEntry
public MapEntry(K key,
V value)
- Constructs a new MapEntry with the given key and value. /shrug.
- Parameters:
key - the keyvalue - the value
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>