public class FiniteStringsIterator extends Object
If the Automaton
has cycles then this iterator may throw an IllegalArgumentException
, but this is not guaranteed!
Be aware that the iteration order is implementation dependent and may change across releases.
If the automaton is not determinized then it's possible this iterator will return duplicates.
Constructor and Description |
---|
FiniteStringsIterator(Automaton a)
Constructor.
|
FiniteStringsIterator(Automaton a,
int startState,
int endState)
Constructor.
|
public FiniteStringsIterator(Automaton a)
a
- Automaton to create finite string from.public FiniteStringsIterator(Automaton a, int startState, int endState)
a
- Automaton to create finite string from.startState
- The starting state for each path.endState
- The state where each path should stop or -1 if only accepted states should be final.public IntsRef next()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.