org.mmbase.util
Class Entry

java.lang.Object
  extended byorg.mmbase.util.Entry
All Implemented Interfaces:
Cloneable, Map.Entry, PublicCloneable, Serializable

public final class Entry
extends Object
implements Map.Entry, PublicCloneable, Serializable

Represents a pair of values ('key' and a 'value'). It is a straight-forward implementation of Map.Entry, and can be used as a utility for Map implementations.

Since:
MMBase-1.8
Version:
$Id: Entry.java,v 1.5 2006/04/18 13:08:24 michiel Exp $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Constructor Summary
protected Entry()
           
  Entry(Map.Entry e)
           
  Entry(Object k, Object v)
           
 
Method Summary
 Object clone()
           
 boolean equals(Object o)
           
 Object getKey()
           
 Object getValue()
           
 int hashCode()
           
 Object setValue(Object v)
           
 String toString()
          A sensible toString, for debugging purposes ('<key>=<value>').
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Entry

protected Entry()

Entry

public Entry(Object k,
             Object v)
Parameters:
k - The key of this Map.Entry
v - The value of this Map.Entry

Entry

public Entry(Map.Entry e)
Method Detail

getKey

public Object getKey()
Specified by:
getKey in interface Map.Entry

getValue

public Object getValue()
Specified by:
getValue in interface Map.Entry

setValue

public Object setValue(Object v)
Specified by:
setValue in interface Map.Entry

clone

public Object clone()
Specified by:
clone in interface PublicCloneable

hashCode

public int hashCode()
Specified by:
hashCode in interface Map.Entry

equals

public boolean equals(Object o)
Specified by:
equals in interface Map.Entry

toString

public String toString()
A sensible toString, for debugging purposes ('<key>=<value>').



MMBase build 1.8.1.20060716