Interface OffsetTimeArbitrary

  • All Superinterfaces:
    Arbitrary<java.time.OffsetTime>

    @API(status=EXPERIMENTAL,
         since="1.5.1")
    public interface OffsetTimeArbitrary
    extends Arbitrary<java.time.OffsetTime>
    Fluent interface to configure the generation of offset time values.
    • Method Detail

      • between

        default OffsetTimeArbitrary between​(java.time.LocalTime min,
                                            java.time.LocalTime max)
        Set the allowed lower min (included) and upper max (included) bounder of generated time values. If you don't explicitly set the precision and use min/max values with precision milliseconds/microseconds/nanoseconds, the precision of your min/max value is implicitly set.
      • atTheEarliest

        OffsetTimeArbitrary atTheEarliest​(java.time.LocalTime min)
        Set the allowed lower min (included) bounder of generated time values. If you don't explicitly set the precision and use min/max values with precision milliseconds/microseconds/nanoseconds, the precision of your min/max value is implicitly set.
      • atTheLatest

        OffsetTimeArbitrary atTheLatest​(java.time.LocalTime max)
        Set the allowed upper max (included) bounder of generated time values. If you don't explicitly set the precision and use min/max values with precision milliseconds/microseconds/nanoseconds, the precision of your min/max value is implicitly set.
      • hourBetween

        OffsetTimeArbitrary hourBetween​(int min,
                                        int max)
        Set the allowed lower min (included) and upper max (included) bounder of generated hour values. The hours can be between 0 and 23.
      • minuteBetween

        OffsetTimeArbitrary minuteBetween​(int min,
                                          int max)
        Set the allowed lower min (included) and upper max (included) bounder of generated minute values. The minutes can be between 0 and 59.
      • secondBetween

        OffsetTimeArbitrary secondBetween​(int min,
                                          int max)
        Set the allowed lower min (included) and upper max (included) bounder of generated second values. The minutes can be between 0 and 59.
      • offsetBetween

        OffsetTimeArbitrary offsetBetween​(java.time.ZoneOffset min,
                                          java.time.ZoneOffset max)
        Set the allowed lower min (included) and upper max (included) bounder of generated offset values. The offsets can be between -12:00:00 and +14:00:00.
      • ofPrecision

        OffsetTimeArbitrary ofPrecision​(java.time.temporal.ChronoUnit ofPrecision)
        Constrain the precision of generated values. Default value: Seconds. If you don't explicitly set the precision and use min/max values with precision milliseconds/microseconds/nanoseconds, the precision of your min/max value is implicitly set.