public final class FSAFinalStatesIterator extends Object implements Iterator<ByteBuffer>
| Constructor and Description |
|---|
FSAFinalStatesIterator(FSA fsa,
int node)
Create an instance of the iterator for a given node.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns
true if there are still elements in this iterator. |
ByteBuffer |
next() |
void |
remove()
Not implemented in this iterator.
|
void |
restartFrom(int node)
Restart walking from
node. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic FSAFinalStatesIterator(FSA fsa, int node)
public void restartFrom(int node)
node. Allows iterator reuse.public boolean hasNext()
true if there are still elements in this iterator.hasNext in interface Iterator<ByteBuffer>public ByteBuffer next()
next in interface Iterator<ByteBuffer>ByteBuffer with the sequence corresponding to
the next final state in the automaton.public void remove()
remove in interface Iterator<ByteBuffer>Copyright © 2015. All rights reserved.