Class FakeDuration


public class FakeDuration extends AbstractProvider<BaseProviders>
Since:
0.8.0
  • Constructor Details

  • Method Details

    • atMostMinutes

      public Duration atMostMinutes(long minutesMax)
      Returns a Duration object representing a random duration of minutes in the given range
      Parameters:
      minutesMax - : max number of minutes for Duration (inclusive)
      Returns:
      a Duration object representing a number of minutes in the given range
    • atMostHours

      public Duration atMostHours(long hoursMax)
      Returns a Duration object representing a random duration of hours in the given range
      Parameters:
      hoursMax - : max number of hours for Duration (inclusive)
      Returns:
      a Duration object representing a number of hours in the given range
    • atMostDays

      public Duration atMostDays(long daysMax)
      Returns a Duration object representing a random duration of days in the given range
      Parameters:
      daysMax - : max number of days for Duration (inclusive)
      Returns:
      a Duration object representing a number of days in the given range
    • atMostSeconds

      public Duration atMostSeconds(long secondsMax)
      Returns a Duration object representing a random duration of seconds in the given range
      Parameters:
      secondsMax - : max number of seconds for Duration (inclusive)
      Returns:
      a Duration object representing a number of seconds in the given range