public final class FSAFinalStatesIterator
extends java.lang.Object
implements java.util.Iterator<java.nio.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. |
java.nio.ByteBuffer |
next() |
void |
remove()
Not implemented in this iterator.
|
void |
restartFrom(int node)
Restart walking from
node. |
public 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 java.util.Iterator<java.nio.ByteBuffer>public java.nio.ByteBuffer next()
next in interface java.util.Iterator<java.nio.ByteBuffer>ByteBuffer with the sequence corresponding to
the next final state in the automaton.public void remove()
remove in interface java.util.Iterator<java.nio.ByteBuffer>Copyright © 2012. All Rights Reserved.