Class TimeRangePicker.TimeRange

java.lang.Object
com.dlsc.gemsfx.TimeRangePicker.TimeRange
Enclosing class:
TimeRangePicker

public static final class TimeRangePicker.TimeRange extends Object
Represents a time range with a start time and an end time. Ensures that the start time is not after the end time.
  • Constructor Details

    • TimeRange

      public TimeRange(LocalTime startTime, LocalTime endTime)
      Constructs a new time range.
      Parameters:
      startTime - the start time
      endTime - the end time
  • Method Details

    • startTime

      public LocalTime startTime()
      Returns the start time of the range.
      Returns:
      the start time
    • endTime

      public LocalTime endTime()
      Returns the end time of the range.
      Returns:
      the end time
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Parameters:
      o - the o value
      Returns:
      the result
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Returns:
      the result
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      the string representation of the value