public class DataIterator extends Object implements Iterator<DataComponent>, Iterable<DataComponent>
This iterator will go through all components recursively. This does not iterate through each array value.
Modifier and Type | Class and Description |
---|---|
protected class |
DataIterator.Record |
Modifier and Type | Field and Description |
---|---|
protected Stack<DataIterator.Record> |
componentStack |
protected DataComponent |
rootComponent |
Constructor and Description |
---|
DataIterator(DataComponent rootComponent) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
Iterator<DataComponent> |
iterator() |
DataComponent |
next() |
void |
remove() |
void |
reset() |
void |
skipChildren() |
protected DataComponent rootComponent
protected Stack<DataIterator.Record> componentStack
public DataIterator(DataComponent rootComponent)
public void reset()
public DataComponent next()
next
in interface Iterator<DataComponent>
public boolean hasNext()
hasNext
in interface Iterator<DataComponent>
public void skipChildren()
public void remove()
remove
in interface Iterator<DataComponent>
public Iterator<DataComponent> iterator()
iterator
in interface Iterable<DataComponent>
Copyright © 2016 Sensia Software LLC. All rights reserved.