Methods Summary |
---|
public int | compareTo(java.lang.Object o)Method compareTo
LocalTestNode other = ( LocalTestNode ) o;
int rval = getKey().compareTo(other.getKey());
if (rval == 0)
{
rval = getValue().compareTo(other.getValue());
}
return rval;
|
public boolean | equals(java.lang.Object o)Method equals
if (o == null)
{
return false;
}
if (!(o.getClass().equals(this.getClass())))
{
return false;
}
LocalTestNode node = ( LocalTestNode ) o;
return (getKey().equals(node.getKey())
&& getValue().equals(node.getValue()));
|
java.lang.Comparable | getKey()
return _key;
|
java.lang.Comparable | getValue()
return _value;
|
public int | hashCode()
return getKey().hashCode() ^ getValue().hashCode();
|
void | setKey(java.lang.Comparable key)
_key = key;
|
void | setValue(java.lang.Comparable value)
_value = value;
|