org.compass.core.util.backport.java.util
Class TreeMap.Entry

java.lang.Object
  extended by org.compass.core.util.backport.java.util.TreeMap.Entry
All Implemented Interfaces:
Serializable, Cloneable, Map.Entry
Enclosing class:
TreeMap

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

See Also:
Serialized Form

Constructor Summary
TreeMap.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()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeMap.Entry

public TreeMap.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()
                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.)

Overrides:
clone in class Object
Throws:
CloneNotSupportedException

getKey

public final Object getKey()
Specified by:
getKey in interface Map.Entry

getValue

public final Object getValue()
return the element value

Specified by:
getValue in interface Map.Entry

setValue

public final Object setValue(Object v)
set the element value

Specified by:
setValue in interface Map.Entry

equals

public boolean equals(Object o)
Specified by:
equals in interface Map.Entry
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Map.Entry
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) 2004-2006 The Compass Project.