E
- the type of Entry used in the indexpublic class IndexTreePath<E extends Entry>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private E |
entry
The entry of this component.
|
private int |
index
The index of this component in its parent.
|
private IndexTreePath<E> |
parentPath
Path representing the parent, null if lastPathComponent represents the
root.
|
Constructor and Description |
---|
IndexTreePath(IndexTreePath<E> parent,
E entry,
int index)
Constructs a new IndexPath.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
E |
getEntry()
Returns the entry of the component.
|
int |
getIndex()
Returns the index of the component in its parent.
|
IndexTreePath<E> |
getParentPath()
Returns a path containing all the elements of this object, except the last
path component.
|
int |
getPathCount()
Returns the number of elements in the path.
|
int |
hashCode() |
java.lang.String |
toString()
Returns a string that displays the components of this index path.
|
private IndexTreePath<E extends Entry> parentPath
private final int index
public IndexTreePath(IndexTreePath<E> parent, E entry, int index)
parent
- the parent pathentry
- the entry of the componentindex
- index of the component in its parentpublic E getEntry()
public int getIndex()
public int getPathCount()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public IndexTreePath<E> getParentPath()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.