com.pholser.junit.quickcheck.internal.generator
Class LambdaGenerator<T,U>
java.lang.Object
com.pholser.junit.quickcheck.generator.Generator<Object>
com.pholser.junit.quickcheck.internal.generator.LambdaGenerator<T,U>
public class LambdaGenerator<T,U>
- extends Generator<Object>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LambdaGenerator
public LambdaGenerator(Class<T> lambdaType,
Generator<U> returnValueGenerator)
generate
public T generate(SourceOfRandomness random,
GenerationStatus status)
- Description copied from class:
Generator
Produces a value for a theory parameter.
A generator may raise an unchecked exception if some condition exists which would lead to a confusing
generation -- for example, if a generator honored a range configuration, and the endpoints were transposed.
- Specified by:
generate in class Generator<Object>
- Parameters:
random - a source of randomness to be used when generating the valuestatus - an object that the generator can use to influence the value it produces. For example, a generator
for lists can use the size method to generate lists with a given number of
elements.
- Returns:
- the generated value
Copyright © 2013. All Rights Reserved.