Class Entry<V,K>
java.lang.Object
info.monitorenter.util.collections.Entry<V,K>
- Type Parameters:
V
- the key type.K
- the value type.
- All Implemented Interfaces:
Map.Entry<V,
K>
I have written implementations of java.util.Map.Entry in form of
- Static inner classes.
- Non-static inner classes.
- Non-public classes.
- Anonymous classes.
Almost all implementations were plainforward and not hiding any complexity.
One could not downcast them to get more methods, and they were replaceable.
That's it! Finally i decided to hardcode it here... .
But don't you start writing methods like:
public Entry getEntry(String name); public void setEntry(Entry entry);Try sticking to the interface java.util.Map.Entry.
- Author:
- Achim Westermann
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Entry
Creates an instance with the given key and value.- Parameters:
key
- the key instance to use.value
- the value instance to use.
-
-
Method Details
-
equals
-
getKey
Maybe null! -
getValue
Maybe null! -
hashCode
public int hashCode() -
setValue
Sets a new value instance overwriting the old value which is returned.You may use null. But you will get it back next call!
-