Class ZoneOffsetGenerator
java.lang.Object
org.instancio.internal.generator.AbstractGenerator<ZoneOffset>
org.instancio.internal.generator.time.ZoneOffsetGenerator
- All Implemented Interfaces:
Generator<ZoneOffset>
,GeneratorSpec<ZoneOffset>
,NullableGeneratorSpec<ZoneOffset>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the public API method name of the generator spec.Returns a generated value.Methods inherited from class org.instancio.internal.generator.AbstractGenerator
getContext, hints, isNullable, nullable, nullable
-
Constructor Details
-
ZoneOffsetGenerator
-
-
Method Details
-
apiMethod
Description copied from class:AbstractGenerator
Returns the public API method name of the generator spec. The returned name is used for reporting validation errors.- Specified by:
apiMethod
in classAbstractGenerator<ZoneOffset>
- Returns:
- spec name if defined, or
null
otherwise
-
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.- Parameters:
random
- provider for generating random values- Returns:
- generated value or
null
if value is nullable, could not be generated, or generation is delegated to the engine
-