Class CalendarDateRange
- java.lang.Object
-
- com.vaadin.ui.components.calendar.CalendarDateRange
-
- All Implemented Interfaces:
Serializable
public class CalendarDateRange extends Object implements Serializable
Class for representing a date range.- Since:
- 7.1.0
- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CalendarDateRange(Date start, Date end, TimeZone tz)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetEnd()Get the end date of the date rangeDategetStart()Get the start date of the date rangebooleaninRange(Date date)Is a date in the date rangeStringtoString()
-
-
-
Method Detail
-
getStart
public Date getStart()
Get the start date of the date range- Returns:
- the start Date of the range
-
getEnd
public Date getEnd()
Get the end date of the date range- Returns:
- the end Date of the range
-
inRange
public boolean inRange(Date date)
Is a date in the date range- Parameters:
date- The date to check- Returns:
- true if the date range contains a date start and end of range inclusive; false otherwise
-
-