|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.query.iter.Iter
org.basex.query.iter.NodeIter
org.basex.query.iter.NodIter
public final class NodIter
Simple node Iterator, ignoring duplicates.
| Field Summary | |
|---|---|
Nod[] |
list
Items. |
int |
size
Size. |
| Fields inherited from class org.basex.query.iter.NodeIter |
|---|
NONE |
| Fields inherited from class org.basex.query.iter.Iter |
|---|
EMPTY |
| Constructor Summary | |
|---|---|
NodIter()
Constructor. |
|
NodIter(boolean d)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(Nod n)
Adds a node. |
void |
delete(int p)
Deletes a value at the specified position. |
Item |
finish()
Returns a sequence from all iterator values. |
Item |
get(long i)
Returns the specified item. |
Nod |
next()
Returns the next item or null if no other items are found. |
boolean |
reset()
Resets the iterator and returns true. |
int |
size()
Returns the number of entries. |
void |
sort(boolean force)
Sorts the nodes. |
java.lang.String |
toString()
|
| Methods inherited from class org.basex.query.iter.Iter |
|---|
iterator, reverse |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Nod[] list
public int size
| Constructor Detail |
|---|
public NodIter()
public NodIter(boolean d)
d - returns if the iterator might return duplicates| Method Detail |
|---|
public void delete(int p)
p - deletion positionpublic void add(Nod n)
n - node to be addedpublic boolean reset()
Iter
reset in class Iterpublic Nod next()
Iter
next in class NodeIterpublic Item get(long i)
Iter
get in class Iteri - value offset
public int size()
IterIter.get(long) has to be implemented as well.
size in class Iterpublic Item finish()
IterIter.next().
finish in class Iterpublic void sort(boolean force)
force - force sortpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||