org.mmbase.util
Class Entry
java.lang.Object
org.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
Entry
protected Entry()
Entry
public Entry(Object k,
Object v)
- Parameters:
k - The key of this Map.Entryv - The value of this Map.Entry
Entry
public Entry(Map.Entry e)
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