Class DateTimeRange
java.lang.Object
com.vaadin.componentfactory.datetimerangepicker.DateTimeRange
- All Implemented Interfaces:
Serializable
A simple data class that represents a date-time range using two
LocalDateTime values: a
start and an end.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDateTimeRange(LocalDateTime startDateTime, LocalDateTime endDateTime) Constructs a newDateTimeRangewith the specified start and endLocalDateTime. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the end of the date-time range.Returns the start of the date-time range.inthashCode()voidsetEndDateTime(LocalDateTime endDateTime) Sets the end of the date-time range.voidsetStartDateTime(LocalDateTime startDateTime) Sets the start of the date-time range.toString()
-
Constructor Details
-
DateTimeRange
Constructs a newDateTimeRangewith the specified start and endLocalDateTime.- Parameters:
startDateTime- the start of the date-time rangeendDateTime- the end of the date-time range
-
-
Method Details
-
getStartDateTime
Returns the start of the date-time range.- Returns:
- the start date-time
-
setStartDateTime
Sets the start of the date-time range.- Parameters:
startDateTime- the new start date-time
-
getEndDateTime
Returns the end of the date-time range.- Returns:
- the end date-time
-
setEndDateTime
Sets the end of the date-time range.- Parameters:
endDateTime- the new end date-time
-
toString
-
hashCode
public int hashCode() -
equals
-