Package org.instancio.generator.array
Class OneOfArrayGenerator<T>
- java.lang.Object
-
- org.instancio.generator.AbstractRandomGenerator<T>
-
- org.instancio.generator.array.OneOfArrayGenerator<T>
-
- All Implemented Interfaces:
Generator<T>
,OneOfArrayGeneratorSpec<T>
,GeneratorSpec<T>
public class OneOfArrayGenerator<T> extends AbstractRandomGenerator<T> implements OneOfArrayGeneratorSpec<T>
-
-
Constructor Summary
Constructors Constructor Description OneOfArrayGenerator(GeneratorContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
generate()
Returns a generated value.OneOfArrayGeneratorSpec<T>
oneOf(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
-
OneOfArrayGenerator
public OneOfArrayGenerator(GeneratorContext context)
-
-
Method Detail
-
oneOf
public OneOfArrayGeneratorSpec<T> oneOf(T[] values)
- Specified by:
oneOf
in interfaceOneOfArrayGeneratorSpec<T>
-
-