Class ObjectGeneratorImpl<T>
- java.lang.Object
-
- de.cuioss.test.generator.internal.net.java.quickcheck.generator.support.ObjectGeneratorImpl<T>
-
- All Implemented Interfaces:
Generator<T>,ObjectGenerator<T>
- Direct Known Subclasses:
ObjectDefaultMappingGenerator
public class ObjectGeneratorImpl<T> extends Object implements ObjectGenerator<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.cuioss.test.generator.internal.net.java.quickcheck.ObjectGenerator
ObjectGenerator.ReturnValue<R>
-
-
Constructor Summary
Constructors Constructor Description ObjectGeneratorImpl(Class<T> objectType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetRecorder()Implementation of T that is used to define the method a generator should be defined for.Tnext()Generates the next instance.<R> ObjectGenerator.ReturnValue<R>on(R obj)Define a method a generator should be defined for.
-
-
-
Constructor Detail
-
ObjectGeneratorImpl
public ObjectGeneratorImpl(Class<T> objectType)
-
-
Method Detail
-
getRecorder
public T getRecorder()
Description copied from interface:ObjectGeneratorImplementation of T that is used to define the method a generator should be defined for.- Specified by:
getRecorderin interfaceObjectGenerator<T>- Returns:
- an implementation of T used only to record method calls
-
on
public <R> ObjectGenerator.ReturnValue<R> on(R obj)
Description copied from interface:ObjectGeneratorDefine a method a generator should be defined for.- Specified by:
onin interfaceObjectGenerator<T>- Type Parameters:
R- type of the return type- Parameters:
obj- is ignored- Returns:
ObjectGenerator.ReturnValueinstance to define a generator for this method
-
-