LimitedFiniteStringsIterator

FiniteStringsIterator which limits the number of iterated accepted strings. If more than limit strings are accepted, the first limit strings found are returned.

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.

Constructors

Link copied to clipboard
constructor(a: Automaton, limit: Int)

Functions

Link copied to clipboard
open override fun next(): IntsRef?

Generate next finite string. The return value is just valid until the next call of this method!

Link copied to clipboard
fun size(): Int

Number of iterated finite strings.