edu.emory.mathcs.backport.java.util

Class TreeMap.Entry

Enclosing Class:
TreeMap
Implemented Interfaces:
Cloneable, Map.Entry, java.io.Serializable

public static class TreeMap.Entry
extends java.lang.Object
implements Map.Entry, Cloneable, java.io.Serializable

See Also:
Serialized Form

Constructor Summary

Entry(Object key, Object element)
Make a new node with given element, null links, and BLACK color.

Method Summary

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()

Constructor Details

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 Details

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()