V
- public final class Cursor<K,V extends K>
extends java.lang.Object
implements java.util.Iterator<V>
Constructor and Description |
---|
Cursor() |
Modifier and Type | Method and Description |
---|---|
int |
count() |
boolean |
hasNext() |
V |
next() |
void |
remove() |
void |
reset(java.lang.Object[] btree,
boolean forwards)
Reset this cursor for the provided tree, to iterate over its entire range
|
void |
reset(java.lang.Object[] btree,
java.util.Comparator<K> comparator,
K lowerBound,
boolean inclusiveLowerBound,
K upperBound,
boolean inclusiveUpperBound,
boolean forwards)
Reset this cursor for the provided tree, to iterate between the provided start and end
|
void |
reset(java.lang.Object[] btree,
java.util.Comparator<K> comparator,
K lowerBound,
K upperBound,
boolean forwards)
Reset this cursor for the provided tree, to iterate between the provided start and end
|
public void reset(java.lang.Object[] btree, boolean forwards)
btree
- the tree to iterate overforwards
- if false, the cursor will start at the end and move backwardspublic void reset(java.lang.Object[] btree, java.util.Comparator<K> comparator, K lowerBound, K upperBound, boolean forwards)
btree
- the tree to iterate overcomparator
- the comparator that defines the ordering over the items in the treelowerBound
- the first item to include, inclusiveupperBound
- the last item to include, exclusiveforwards
- if false, the cursor will start at the end and move backwardspublic void reset(java.lang.Object[] btree, java.util.Comparator<K> comparator, K lowerBound, boolean inclusiveLowerBound, K upperBound, boolean inclusiveUpperBound, boolean forwards)
btree
- the tree to iterate overcomparator
- the comparator that defines the ordering over the items in the treelowerBound
- the first item to includeinclusiveLowerBound
- should include start in the iterator, if present in the treeupperBound
- the last item to includeinclusiveUpperBound
- should include end in the iterator, if present in the treeforwards
- if false, the cursor will start at the end and move backwardspublic int count()
Copyright © 2014 The Apache Software Foundation