Inheritance diagram for com::sleepycat::collections::MapEntryParameter:
Public Member Functions | |
MapEntryParameter (Object key, Object value) | |
int | hashCode () |
boolean | equals (Object other) |
final Object | getKey () |
final Object | getValue () |
Object | setValue (Object newValue) |
String | toString () |
Map.Entry
implementation that can be used as in input parameter. Since a MapEntryParameter
is not obtained from a map, it is not attached to any map in particular. To emphasize that changing this object does not change the map, the setValue method always throws UnsupportedOperationException
.
Warning: Use of this interface violates the Java Collections interface contract since these state that Map.Entry
objects should only be obtained from Map.entrySet()
sets, while this class allows constructing them directly. However, it is useful for performing operations on an entry set such as add(), contains(), etc. For restrictions see getValue and setValue.
Definition at line 30 of file MapEntryParameter.java.
|
Creates a map entry with a given key and value.
Definition at line 42 of file MapEntryParameter.java. |
|
Compares this entry to a given entry as specified by java.util.Map.Entry#equals.
Definition at line 66 of file MapEntryParameter.java. |
|
Returns the key of this entry.
Definition at line 85 of file MapEntryParameter.java. Referenced by com::sleepycat::collections::StoredMapEntry::setValue(). |
|
Returns the value of this entry. Note that this will be the value passed to the constructor or the last value passed to setValue. It will not reflect changes made to a Map.
Definition at line 97 of file MapEntryParameter.java. Referenced by com::sleepycat::collections::StoredMapEntry::setValue(). |
|
Computes a hash code as specified by java.util.Map.Entry#hashCode.
Definition at line 54 of file MapEntryParameter.java. |
|
Always throws Reimplemented in com::sleepycat::collections::StoredMapEntry. Definition at line 106 of file MapEntryParameter.java. |
|
Converts the entry to a string representation for debugging.
Definition at line 121 of file MapEntryParameter.java. |