A
- Type of first hierarchyB
- Type of second level hierarchypublic class StackedIter<B,A extends B> extends Object implements Hierarchy.Iter<B>
Modifier and Type | Field and Description |
---|---|
private Hierarchy<B> |
hier2
Secondary hierarchy.
|
private Hierarchy.Iter<? extends A> |
it1
Iterator in primary hierarchy.
|
private Hierarchy.Iter<B> |
it2
Iterator in secondary hierarchy.
|
Constructor and Description |
---|
StackedIter(Hierarchy.Iter<? extends A> it1,
Hierarchy<B> hier2)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
StackedIter<B,A> |
advance()
Moves the iterator forward to the next entry.
|
B |
get()
Access the current object.
|
boolean |
valid()
Returns true if the iterator currently points to a valid object.
|
private Hierarchy.Iter<? extends A extends B> it1
private Hierarchy.Iter<B> it2
public StackedIter(Hierarchy.Iter<? extends A> it1, Hierarchy<B> hier2)
it1
- Iterator in primary hierarchyhier2
- Iterator in secondary hierarchypublic B get()
Hierarchy.Iter
get
in interface Hierarchy.Iter<B>
public boolean valid()
Iter
public StackedIter<B,A> advance()
Iter
advance
in interface Hierarchy.Iter<B>
advance
in interface Iter
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.