Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.index.tree
Class TreeIndexPathComponent<E extends Entry>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.index.tree.TreeIndexPathComponent<E>

public class TreeIndexPathComponent<E extends Entry>
extends Object

Represents a component in an IndexPath. A component in an IndexPath consists of the entry of the index (representing a node or a data object) and the index of the component in its parent.

Author:
Elke Achtert

Field Summary
private  E entry
          The entry of the component.
private  Integer index
          The index of the component in its parent.
 
Constructor Summary
TreeIndexPathComponent(E entry, Integer index)
          Creates a new IndexPathComponent.
 
Method Summary
 boolean equals(Object o)
          Indicates whether some other object is "equal to" this one.
 E getEntry()
          Returns the entry of the component.
 Integer getIndex()
          Returns the index of the component in its parent.
 int hashCode()
          Returns a hash code for this object.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

entry

private E extends Entry entry
The entry of the component.


index

private Integer index
The index of the component in its parent.

Constructor Detail

TreeIndexPathComponent

public TreeIndexPathComponent(E entry,
                              Integer index)
Creates a new IndexPathComponent.

Parameters:
entry - the entry of the component
index - index of the component in its parent
Method Detail

getEntry

public E getEntry()
Returns the entry of the component.

Returns:
the entry of the component

getIndex

public Integer getIndex()
Returns the index of the component in its parent.

Returns:
the index of the component in its parent

equals

public boolean equals(Object o)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class Object
Parameters:
o - the reference object with which to compare
Returns:
true if the identifier of this component equals the identifier of the o argument; false otherwise.

hashCode

public int hashCode()
Returns a hash code for this object.

Overrides:
hashCode in class Object
Returns:
a hash code for this object

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
Returns:
a string representation of the object.

Release 0.1 (2008-07-10_1838)