edu.emory.mathcs.backport.java.util

Class TreeMap.Entry

public static class TreeMap.Entry extends Object implements Entry, Cloneable, Serializable

Constructor Summary
Entry(Object key, Object element)
Make a new node with given element, null links, and BLACK color.
Method Summary
protected Objectclone()
Return a new Entry with same element and color as self, but with null links.
booleanequals(Object o)
ObjectgetKey()
ObjectgetValue()
return the element value
inthashCode()
ObjectsetValue(Object v)
set the element value
StringtoString()

Constructor Detail

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.

Method Detail

clone

protected Object clone()
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()