Package org.instancio.generator.util
Class OneOfCollectionGenerator<T>
- java.lang.Object
-
- org.instancio.generator.AbstractRandomGenerator<T>
-
- org.instancio.generator.util.OneOfCollectionGenerator<T>
-
- All Implemented Interfaces:
Generator<T>
,GeneratorSpec<T>
,OneOfCollectionGeneratorSpec<T>
public class OneOfCollectionGenerator<T> extends AbstractRandomGenerator<T> implements OneOfCollectionGeneratorSpec<T>
-
-
Constructor Summary
Constructors Constructor Description OneOfCollectionGenerator(GeneratorContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
generate()
Returns a generated value.OneOfCollectionGeneratorSpec<T>
oneOf(Collection<T> values)
-
Methods inherited from class org.instancio.generator.AbstractRandomGenerator
getContext, random
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.instancio.Generator
getHints, isDelegating, setDelegate, targetClass
-
-
-
-
Constructor Detail
-
OneOfCollectionGenerator
public OneOfCollectionGenerator(GeneratorContext context)
-
-
Method Detail
-
oneOf
public OneOfCollectionGeneratorSpec<T> oneOf(Collection<T> values)
- Specified by:
oneOf
in interfaceOneOfCollectionGeneratorSpec<T>
-
-