com.mysql.management.util
Class MapEntry

java.lang.Object
  extended by com.mysql.management.util.MapEntry
All Implemented Interfaces:
java.util.Map.Entry

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

Simple (and obvious) implementation of java.util.Map.Entry This class is final simply as a hint to the compiler, it may be un-finalized safely.

Version:
$Id: MapEntry.java,v 1.5 2005/09/22 20:41:36 eherman Exp $
Author:
Eric Herman

Constructor Summary
MapEntry(java.lang.Object key, java.lang.Object value)
           
 
Method Summary
 boolean equals(java.util.Map.Entry other)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Object getKey()
           
 java.lang.Object getValue()
           
 int hashCode()
          XOR of the key and value hashCodes.
 java.lang.Object setValue(java.lang.Object value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapEntry

public MapEntry(java.lang.Object key,
                java.lang.Object value)
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

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface java.util.Map.Entry
Overrides:
equals in class java.lang.Object

equals

public boolean equals(java.util.Map.Entry other)

hashCode

public int hashCode()
XOR of the key and value hashCodes. (Zero used for nulls) as defined by Map.Entry java doc.

Specified by:
hashCode in interface java.util.Map.Entry
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2011. All Rights Reserved.