public class LimitedFiniteStringsIterator extends FiniteStringsIterator
FiniteStringsIteratorwhich limits the number of iterated accepted strings. If more than
limitstrings are accepted, the first
limitstrings found are returned.
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.
|Constructor and Description|
public LimitedFiniteStringsIterator(Automaton a, int limit)
a- Automaton to create finite string from.
limit- Maximum number of finite strings to create, or -1 for infinite.
public IntsRef next()
public int size()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.