edu.emory.mathcs.backport.java.util
Class TreeMap.Entry
java.lang.Object
edu.emory.mathcs.backport.java.util.TreeMap.Entry
- TreeMap
- Cloneable, Map.Entry, java.io.Serializable
public static class TreeMap.Entry
extends java.lang.Object
implements Map.Entry, Cloneable, java.io.Serializable
Entry(Object key, Object element) - Make a new node with given element, null links, and BLACK color.
|
protected Object | clone() - Return a new Entry with same element and color as self,
but with null links.
|
boolean | equals(Object o)
|
Object | getKey()
|
Object | getValue() - return the element value
|
int | hashCode()
|
Object | setValue(Object v) - set the element value
|
String | toString()
|
Entry
public Entry(Object key,
Object element)
Make a new node with given element, null links, and BLACK color.
Normally only called to establish a new root.
clone
protected Object clone()
throws CloneNotSupportedException
Return a new Entry with same element and color as self,
but with null links. (Since it is never OK to have
multiple identical links in a RB tree.)
equals
public boolean equals(Object o)
getKey
public final Object getKey()
getValue
public final Object getValue()
return the element value
hashCode
public int hashCode()
setValue
public final Object setValue(Object v)
set the element value
toString
public String toString()