Klasse DefaultInstantArbitrary

java.lang.Object
net.jqwik.api.arbitraries.ArbitraryDecorator<Instant>
net.jqwik.time.internal.properties.arbitraries.DefaultInstantArbitrary
Alle implementierten Schnittstellen:
Cloneable, net.jqwik.api.Arbitrary<Instant>, InstantArbitrary

@API(status=INTERNAL) public class DefaultInstantArbitrary extends net.jqwik.api.arbitraries.ArbitraryDecorator<Instant> implements InstantArbitrary
  • Konstruktordetails

    • DefaultInstantArbitrary

      public DefaultInstantArbitrary()
  • Methodendetails

    • arbitrary

      protected net.jqwik.api.Arbitrary<Instant> arbitrary()
      Angegeben von:
      arbitrary in Klasse net.jqwik.api.arbitraries.ArbitraryDecorator<Instant>
    • instantToLocalDateTime

      public static LocalDateTime instantToLocalDateTime(Instant instant)
    • atTheEarliest

      public InstantArbitrary atTheEarliest(Instant min)
      Beschreibung aus Schnittstelle kopiert: InstantArbitrary
      Set the allowed lower min (included) bounder of generated instant 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.
      Angegeben von:
      atTheEarliest in Schnittstelle InstantArbitrary
    • atTheLatest

      public InstantArbitrary atTheLatest(Instant max)
      Beschreibung aus Schnittstelle kopiert: InstantArbitrary
      Set the allowed upper max (included) bounder of generated instant 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.
      Angegeben von:
      atTheLatest in Schnittstelle InstantArbitrary
    • dateBetween

      public InstantArbitrary dateBetween(LocalDate min, LocalDate max)
      Beschreibung aus Schnittstelle kopiert: InstantArbitrary
      Set the allowed lower min (included) and upper max (included) bounder of generated local date values.
      Angegeben von:
      dateBetween in Schnittstelle InstantArbitrary
    • yearBetween

      public InstantArbitrary yearBetween(Year min, Year max)
      Beschreibung aus Schnittstelle kopiert: InstantArbitrary
      Set the allowed lower min (included) and upper max (included) bounder of generated year values. The years can be between 1 and Year.MAX_VALUE.

      Calling this method is equivalent to calling InstantArbitrary.dateBetween(LocalDate, LocalDate) assuming Jan 1 and Dec 31 as first and last day of those years.

      Angegeben von:
      yearBetween in Schnittstelle InstantArbitrary
    • monthBetween

      public InstantArbitrary monthBetween(Month min, Month max)
      Beschreibung aus Schnittstelle kopiert: InstantArbitrary
      Set the allowed lower min (included) and upper max (included) bounder of generated month values.
      Angegeben von:
      monthBetween in Schnittstelle InstantArbitrary
    • onlyMonths

      public InstantArbitrary onlyMonths(Month... months)
      Beschreibung aus Schnittstelle kopiert: InstantArbitrary
      Set an array of allowed months.
      Angegeben von:
      onlyMonths in Schnittstelle InstantArbitrary
    • dayOfMonthBetween

      public InstantArbitrary dayOfMonthBetween(int min, int max)
      Beschreibung aus Schnittstelle kopiert: InstantArbitrary
      Set the allowed lower min (included) and upper max (included) bounder of generated day of month values. The int values can be between 1 and 31.
      Angegeben von:
      dayOfMonthBetween in Schnittstelle InstantArbitrary
    • onlyDaysOfWeek

      public InstantArbitrary onlyDaysOfWeek(DayOfWeek... daysOfWeek)
      Beschreibung aus Schnittstelle kopiert: InstantArbitrary
      Set an array of allowed daysOfWeek.
      Angegeben von:
      onlyDaysOfWeek in Schnittstelle InstantArbitrary
    • timeBetween

      public InstantArbitrary timeBetween(LocalTime min, LocalTime max)
      Beschreibung aus Schnittstelle kopiert: InstantArbitrary
      Set the allowed lower min (included) and upper max (included) bounder of generated local 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.
      Angegeben von:
      timeBetween in Schnittstelle InstantArbitrary
    • hourBetween

      public InstantArbitrary hourBetween(int min, int max)
      Beschreibung aus Schnittstelle kopiert: InstantArbitrary
      Set the allowed lower min (included) and upper max (included) bounder of generated hour values. The hours can be between 0 and 23.
      Angegeben von:
      hourBetween in Schnittstelle InstantArbitrary
    • minuteBetween

      public InstantArbitrary minuteBetween(int min, int max)
      Beschreibung aus Schnittstelle kopiert: InstantArbitrary
      Set the allowed lower min (included) and upper max (included) bounder of generated minute values. The minutes can be between 0 and 59.
      Angegeben von:
      minuteBetween in Schnittstelle InstantArbitrary
    • secondBetween

      public InstantArbitrary secondBetween(int min, int max)
      Beschreibung aus Schnittstelle kopiert: InstantArbitrary
      Set the allowed lower min (included) and upper max (included) bounder of generated second values. The minutes can be between 0 and 59.
      Angegeben von:
      secondBetween in Schnittstelle InstantArbitrary
    • ofPrecision

      public InstantArbitrary ofPrecision(ChronoUnit ofPrecision)
      Beschreibung aus Schnittstelle kopiert: InstantArbitrary
      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.
      Angegeben von:
      ofPrecision in Schnittstelle InstantArbitrary