qflib 0.98.0

de.qfs.lib.util
Class MultiMap.MapEntry

java.lang.Object
  |
  +--de.qfs.lib.util.MultiMap.MapEntry
All Implemented Interfaces:
java.util.Map.Entry
Enclosing class:
MultiMap

protected class MultiMap.MapEntry
extends java.lang.Object
implements java.util.Map.Entry

An implementation of the Map.Entry interface.


Field Summary
protected  java.lang.Object key
          The key of the entry.
protected  java.lang.Object value
          The value of the entry.
 
Constructor Summary
MultiMap.MapEntry(java.lang.Object key, java.lang.Object value)
          Create a new MapEntry.
 
Method Summary
 boolean equals(java.lang.Object o)
          Test whether an object is equal to this entry.
 java.lang.Object getKey()
          Get the key of the entry.
 java.lang.Object getValue()
          Get the value of the entry.
 int hashCode()
          Get a hash code for the entry.
 java.lang.Object setValue(java.lang.Object value)
          Set the value of this entry.
 java.lang.String toString()
          Get a String representatio for the entry.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

key

protected java.lang.Object key
The key of the entry.

value

protected java.lang.Object value
The value of the entry.
Constructor Detail

MultiMap.MapEntry

public MultiMap.MapEntry(java.lang.Object key,
                         java.lang.Object value)
Create a new MapEntry.
Parameters:
key - The key of the entry.
value - The value of the entry.
Method Detail

getKey

public java.lang.Object getKey()
Get the key of the entry.
Specified by:
getKey in interface java.util.Map.Entry
Returns:
The key of the entry.

getValue

public java.lang.Object getValue()
Get the value of the entry.
Specified by:
getValue in interface java.util.Map.Entry
Returns:
The value of the entry.

setValue

public java.lang.Object setValue(java.lang.Object value)
Set the value of this entry.
Specified by:
setValue in interface java.util.Map.Entry
Parameters:
value - The new value.
Returns:
The previous value of this entry.

equals

public boolean equals(java.lang.Object o)
Test whether an object is equal to this entry.
Specified by:
equals in interface java.util.Map.Entry
Overrides:
equals in class java.lang.Object
Parameters:
o - The object to test.
Returns:
True if the object implements Map.Entry and has a key and value equal to this entry.

hashCode

public int hashCode()
Get a hash code for the entry.
Specified by:
hashCode in interface java.util.Map.Entry
Overrides:
hashCode in class java.lang.Object
Returns:
A hash code for the entry.

toString

public java.lang.String toString()
Get a String representatio for the entry.
Overrides:
toString in class java.lang.Object
Returns:
A String representatio for the entry.

qflib 0.98.0