net.corda.client.mock

## Class GeneratorKt

- net.corda.client.mock.GeneratorKt

-     public class GeneratorKt

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Generator<kotlin.Array[]>` | `bytes(Generator.Companion $receiver, int size)`
    `static Generator<java.lang.Double>` | `double(Generator.Companion $receiver)`
    `static Generator<java.lang.Double>` | `doubleRange(Generator.Companion $receiver, double from, double to)`
    `static <A> Generator<A>` | `frequency(Generator.Companion $receiver, kotlin.Pair generators)`
    `static <A> A` | `generateOrFail(Generator<? extends A> $receiver, java.util.SplittableRandom random, int numberOfTries)`
    `static Generator<java.lang.Integer>` | `int(Generator.Companion $receiver)`
    `static Generator<java.lang.Integer>` | `intRange(Generator.Companion $receiver, kotlin.ranges.IntRange range)`
    `static Generator<java.lang.Integer>` | `intRange(Generator.Companion $receiver, int from, int to)`
    `static Generator<java.lang.Long>` | `longRange(Generator.Companion $receiver, kotlin.ranges.LongRange range)`
    `static Generator<java.lang.Long>` | `longRange(Generator.Companion $receiver, long from, long to)`
    `static <A> Generator<java.util.List>` | `pickN(Generator.Companion $receiver, int number, java.util.List<? extends A> list)`
    `static <A> Generator<A>` | `pickOne(Generator.Companion $receiver, java.util.List<? extends A> list)`
    `static <A> Generator<java.util.List>` | `replicate(Generator.Companion $receiver, int number, Generator<? extends A> generator)`
    `static <A> Generator<java.util.List>` | `replicatePoisson(Generator.Companion $receiver, double meanSize, Generator<? extends A> generator)`
    `static <A> Generator<java.util.List>` | `sampleBernoulli(Generator.Companion $receiver, double maxRatio, A collection)`
    `static <A> Generator<java.util.List>` | `sampleBernoulli(Generator.Companion $receiver, java.util.Collection<? extends A> collection, double maxRatio)`

- - ### Method Detail

    - #### frequency

          public static <A> Generator<A> frequency(Generator.Companion $receiver,
                                                   kotlin.Pair generators)

    - #### generateOrFail

          public static <A> A generateOrFail(Generator<? extends A> $receiver,
                                             java.util.SplittableRandom random,
                                             int numberOfTries)

    - #### int

          public static Generator<java.lang.Integer> int(Generator.Companion $receiver)

    - #### bytes

          public static Generator<kotlin.Array[]> bytes(Generator.Companion $receiver,
                                                        int size)

    - #### intRange

          public static Generator<java.lang.Integer> intRange(Generator.Companion $receiver,
                                                              kotlin.ranges.IntRange range)

    - #### intRange

          public static Generator<java.lang.Integer> intRange(Generator.Companion $receiver,
                                                              int from,
                                                              int to)

    - #### longRange

          public static Generator<java.lang.Long> longRange(Generator.Companion $receiver,
                                                            kotlin.ranges.LongRange range)

    - #### longRange

          public static Generator<java.lang.Long> longRange(Generator.Companion $receiver,
                                                            long from,
                                                            long to)

    - #### double

          public static Generator<java.lang.Double> double(Generator.Companion $receiver)

    - #### doubleRange

          public static Generator<java.lang.Double> doubleRange(Generator.Companion $receiver,
                                                                double from,
                                                                double to)

    - #### replicate

          public static <A> Generator<java.util.List> replicate(Generator.Companion $receiver,
                                                                int number,
                                                                Generator<? extends A> generator)

    - #### replicatePoisson

          public static <A> Generator<java.util.List> replicatePoisson(Generator.Companion $receiver,
                                                                       double meanSize,
                                                                       Generator<? extends A> generator)

    - #### pickOne

          public static <A> Generator<A> pickOne(Generator.Companion $receiver,
                                                 java.util.List<? extends A> list)

    - #### pickN

          public static <A> Generator<java.util.List> pickN(Generator.Companion $receiver,
                                                            int number,
                                                            java.util.List<? extends A> list)

    - #### sampleBernoulli

          public static <A> Generator<java.util.List> sampleBernoulli(Generator.Companion $receiver,
                                                                      double maxRatio,
                                                                      A collection)

    - #### sampleBernoulli

          public static <A> Generator<java.util.List> sampleBernoulli(Generator.Companion $receiver,
                                                                      java.util.Collection<? extends A> collection,
                                                                      double maxRatio)