org.onemind.commons.java.datastructure
Class MapEntry

java.lang.Object
  extended byorg.onemind.commons.java.datastructure.MapEntry
All Implemented Interfaces:
java.util.Map.Entry

public class MapEntry
extends java.lang.Object
implements java.util.Map.Entry

A simple Map.Entry implementation that can be used for Map extension

Version:
$Id: MapEntry.java,v 1.3 2005/04/26 17:41:48 thlee Exp $ $Name: $
Author:
TiongHiang Lee (thlee@onemindsoft.org)

Constructor Summary
MapEntry(java.lang.Object key, java.lang.Object value)
          {@inheritDoc}
 
Method Summary
 boolean equals(java.lang.Object o)
          
 java.lang.Object getKey()
          
 java.lang.Object getValue()
          
 int hashCode()
          
 java.lang.Object setValue(java.lang.Object value)
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapEntry

public MapEntry(java.lang.Object key,
                java.lang.Object value)
{@inheritDoc}

Method Detail

getKey

public java.lang.Object getKey()

Specified by:
getKey in interface java.util.Map.Entry

getValue

public java.lang.Object getValue()

Specified by:
getValue in interface java.util.Map.Entry

setValue

public java.lang.Object setValue(java.lang.Object value)

Specified by:
setValue in interface java.util.Map.Entry

hashCode

public int hashCode()

Specified by:
hashCode in interface java.util.Map.Entry

equals

public boolean equals(java.lang.Object o)

Specified by:
equals in interface java.util.Map.Entry


Copyright © 2004-2006 . All Rights Reserved.