Package | Description |
---|---|
com.pholser.junit.quickcheck.generator |
Modifier and Type | Method and Description |
---|---|
static <U> Pair<Integer,Gen<? extends U>> |
Gen.freq(int weight,
Gen<? extends U> generator)
Helper for making a weighted generator indicator for
Gen.frequency(Pair, Pair[]) . |
Modifier and Type | Method and Description |
---|---|
static <U> Gen<U> |
Gen.frequency(Pair<Integer,Gen<? extends U>> first,
Pair<Integer,Gen<? extends U>>... rest)
Gives a generation strategy that produces a random value by choosing
one of the given generators at random with probability in proportion
to their given weights, and having it generate a value.
|
static <U> Gen<U> |
Gen.frequency(Pair<Integer,Gen<? extends U>> first,
Pair<Integer,Gen<? extends U>>... rest)
Gives a generation strategy that produces a random value by choosing
one of the given generators at random with probability in proportion
to their given weights, and having it generate a value.
|
© Copyright 2010-2016 Paul R. Holser, Jr. All rights reserved. Licensed under The MIT License. pholser@alumni.rice.edu