Class FiniteStringsIterator

  • Direct Known Subclasses:

    public class FiniteStringsIterator
    extends Object
    Iterates all accepted strings.

    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.

    • Method Detail

      • next

        public IntsRef next()
        Generate next finite string. The return value is just valid until the next call of this method!
        Finite string or null, if no more finite strings are available.