Class QuickCheckGeneratorAdapter<T>
- java.lang.Object
-
- de.cuioss.test.generator.internal.net.QuickCheckGeneratorAdapter<T>
-
- Type Parameters:
T- identifying the type of elements to be generated
- All Implemented Interfaces:
TypedGenerator<T>
public class QuickCheckGeneratorAdapter<T> extends Object implements TypedGenerator<T>
Wrapper forGeneratorprovided by QuickCheck- Author:
- Oliver Wolff
-
-
Constructor Summary
Constructors Constructor Description QuickCheckGeneratorAdapter(@NonNull Class<T> type, @NonNull Generator<T> generator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull Generator<T>getGenerator()@NonNull Class<T>getType()Tnext()Generates the next instance.StringtoString()
-
-
-
Constructor Detail
-
QuickCheckGeneratorAdapter
public QuickCheckGeneratorAdapter(@NonNull @NonNull Class<T> type, @NonNull @NonNull Generator<T> generator)
-
-
Method Detail
-
next
public T next()
Description copied from interface:TypedGeneratorGenerates the next instance.- Specified by:
nextin interfaceTypedGenerator<T>- Returns:
- a newly created instance
-
getType
@NonNull public @NonNull Class<T> getType()
- Specified by:
getTypein interfaceTypedGenerator<T>- Returns:
- class information; which type this generator is responsible for.
-
getGenerator
@NonNull public @NonNull Generator<T> getGenerator()
-
-