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>

public class ZoneOffsetGenerator extends AbstractGenerator<ZoneOffset>
  • Constructor Details

  • Method Details

    • apiMethod

      public String 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 class AbstractGenerator<ZoneOffset>
      Returns:
      spec name if defined, or null otherwise
    • tryGenerateNonNull

      protected ZoneOffset tryGenerateNonNull(Random random)
      Description copied from class: AbstractGenerator
      Makes the best effort to return a non-null value. However, in certain cases this method will produce a null.
      Specified by:
      tryGenerateNonNull in class AbstractGenerator<ZoneOffset>
      Parameters:
      random - for generating the value
      Returns:
      generated value, either a null or non-null