Package org.instancio.generator.lang
Class BooleanGenerator
- All Implemented Interfaces:
Generator<Boolean>
,GeneratorSpec<Boolean>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a generated value.getHints()
Returns hints, including collection sizes and whether values are nullable.Methods inherited from class org.instancio.generator.AbstractGenerator
getContext
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
apiMethodName, isDelegating, setDelegate, supports, targetClass
-
Constructor Details
-
BooleanGenerator
-
-
Method Details
-
generate
Description copied from interface:Generator
Returns a generated value.If the generated value is random, it needs to be generated using the given
Random
instance. This ensures the data is generated with the same seed value and allows random data to be reproduced by specifying the seed value.- Parameters:
random
- provider for generating random values- Returns:
- generated value
-
getHints
Description copied from interface:Generator
Returns hints, including collection sizes and whether values are nullable.- Returns:
- generated hints
-