org.apache.lucene.util.automaton

## Class AutomatonTestUtil.RandomAcceptedStrings

- java.lang.Object
- - org.apache.lucene.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 Summary

    Constructors
    Constructor and Description
    `RandomAcceptedStrings(Automaton a)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int[]` | `getRandomAcceptedString(Random r)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RandomAcceptedStrings

          public RandomAcceptedStrings(Automaton a)

  - ### Method Detail

    - #### getRandomAcceptedString

          public int[] getRandomAcceptedString(Random r)

Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.