Class AutomatonTestUtil.RandomAcceptedStrings

java.lang.Object
org.apache.lucene.tests.util.automaton.AutomatonTestUtil.RandomAcceptedStrings
Enclosing class:
AutomatonTestUtil

public static class AutomatonTestUtil.RandomAcceptedStrings extends Object
Lets you retrieve random strings accepted by an Automaton.

Once created, call getRandomAcceptedString(Random) to get a new string (in UTF-32 codepoints).

  • Constructor Details

    • RandomAcceptedStrings

      public RandomAcceptedStrings(Automaton a)
  • Method Details

    • getRandomAcceptedString

      public int[] getRandomAcceptedString(Random r)