de.fhg.igd.util
Class MapEntry

java.lang.Object
  extended by de.fhg.igd.util.MapEntry
All Implemented Interfaces:
Map.Entry

public class MapEntry
extends Object
implements Map.Entry

Implements Map.Entry, once and for all.

Version:
"$Id: MapEntry.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Volker Roth

Field Summary
private  Object key_
          The key.
private  Object value_
          The value.
 
Constructor Summary
MapEntry(Map.Entry entry)
          Creates an instance from the given Map.Entry.
MapEntry(Object key, Object value)
          Creates an instance with the given key and value.
 
Method Summary
private  boolean equal(Object o, Object p)
           
 boolean equals(Object o)
           
 Object getKey()
           
 Object getValue()
           
 int hashCode()
           
 Object setValue(Object value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key_

private Object key_
The key.


value_

private Object value_
The value.

Constructor Detail

MapEntry

public MapEntry(Object key,
                Object value)
Creates an instance with the given key and value.

Parameters:
key - The key.
value - The value.

MapEntry

public MapEntry(Map.Entry entry)
Creates an instance from the given Map.Entry.

Parameters:
entry - The Map.Entry whose key and value is copied into this entry.
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 value)
Specified by:
setValue in interface Map.Entry

equals

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

equal

private boolean equal(Object o,
                      Object p)

hashCode

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


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.