java.lang.Object
com.vaadin.componentfactory.datetimerangepicker.DateTimeRange
All Implemented Interfaces:
Serializable

public class DateTimeRange extends Object implements Serializable
A simple data class that represents a date-time range using two LocalDateTime values: a start and an end.
See Also:
  • Constructor Details

    • DateTimeRange

      public DateTimeRange(LocalDateTime startDateTime, LocalDateTime endDateTime)
      Constructs a new DateTimeRange with the specified start and end LocalDateTime.
      Parameters:
      startDateTime - the start of the date-time range
      endDateTime - the end of the date-time range
  • Method Details

    • getStartDateTime

      public LocalDateTime getStartDateTime()
      Returns the start of the date-time range.
      Returns:
      the start date-time
    • setStartDateTime

      public void setStartDateTime(LocalDateTime startDateTime)
      Sets the start of the date-time range.
      Parameters:
      startDateTime - the new start date-time
    • getEndDateTime

      public LocalDateTime getEndDateTime()
      Returns the end of the date-time range.
      Returns:
      the end date-time
    • setEndDateTime

      public void setEndDateTime(LocalDateTime endDateTime)
      Sets the end of the date-time range.
      Parameters:
      endDateTime - the new end date-time
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object