net.java.quickcheck.generator.support
Class ObjectGeneratorImpl<T>
java.lang.Object
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>
Method Summary |
T |
getRecorder()
Implementation of T that is used to define the method a generator should
be defined for. |
T |
next()
Generates the next instance. |
|
on(R obj)
Define a method a generator should be defined for. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectGeneratorImpl
public ObjectGeneratorImpl(Class<T> objectType)
getRecorder
public T getRecorder()
- Description copied from interface:
ObjectGenerator
- Implementation of T that is used to define the method a generator should
be defined for.
- Specified by:
getRecorder
in interface ObjectGenerator<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:
ObjectGenerator
- Define a method a generator should be defined for.
- Specified by:
on
in interface ObjectGenerator<T>
- Type Parameters:
R
- type of the return type- Parameters:
obj
- is ignored
- Returns:
ObjectGenerator.ReturnValue
instance to define a generator for this
method
next
public T next()
- Description copied from interface:
Generator
- Generates the next instance.
- Specified by:
next
in interface Generator<T>
- Returns:
- a newly created instance
Copyright © 2011. All Rights Reserved.