Class BooleanGenerator
java.lang.Object
org.instancio.internal.generator.AbstractGenerator<Boolean>
org.instancio.internal.generator.lang.BooleanGenerator
- All Implemented Interfaces:
AsStringGeneratorSpec<Boolean>
,Generator<Boolean>
,GeneratorSpec<Boolean>
,BooleanGeneratorSpec
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a generated value.nullable()
Indicates thatnull
value can be generated.Methods inherited from class org.instancio.internal.generator.AbstractGenerator
getContext, hints
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.AsStringGeneratorSpec
asString, asString
-
Constructor Details
-
BooleanGenerator
-
-
Method Details
-
nullable
Description copied from interface:BooleanGeneratorSpec
Indicates thatnull
value can be generated.- Specified by:
nullable
in interfaceBooleanGeneratorSpec
- Returns:
- spec builder
-
generate
Description copied from interface:Generator
Returns a generated value.If this method produces random data, the data needs to be generated using the provided
Random
instance. This ensures generated values are reproducible for a given seed value.
-