V
- the key type.K
- the value type.public final class Entry<V,K>
extends java.lang.Object
implements java.util.Map.Entry<V,K>
I have written implementations of java.util.Map.Entry in form of
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.
Map.Entry
Constructor and Description |
---|
Entry(V key,
K value)
Creates an instance with the given key and value.
|
public boolean equals(java.lang.Object obj)
public V getKey()
public K getValue()
public int hashCode()
Copyright © 2001 - 2010 LGPL, All Rights Footloose.