Package org.javlo.utils
Class TimeRange
- java.lang.Object
-
- org.javlo.utils.TimeRange
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SmartTimeRange
public class TimeRange extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TimeRange(Date startDate, Date endDate)
TimeRange(ContentContext ctx, ITimeRange tr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getEndDate()
LocalDate
getEndLocalDate()
String
getRenderDates()
Date
getStartDate()
LocalDate
getStartLocalDate()
boolean
isAfter(LocalDate date)
boolean
isAfter(LocalDateTime date)
boolean
isAfter(Date date)
boolean
isBefore(Date date)
boolean
isInside(LocalDate date)
boolean
isInside(Date date)
boolean
isNull()
static void
main(String[] args)
void
setEndData(Date endDate)
void
setStartDate(Date startDate)
String
toString()
-
-
-
Constructor Detail
-
TimeRange
public TimeRange(ContentContext ctx, ITimeRange tr)
-
-
Method Detail
-
getStartDate
public Date getStartDate()
-
getEndDate
public Date getEndDate()
-
getStartLocalDate
public LocalDate getStartLocalDate()
-
getEndLocalDate
public LocalDate getEndLocalDate()
-
setEndData
public void setEndData(Date endDate)
-
setStartDate
public void setStartDate(Date startDate)
-
isBefore
public boolean isBefore(Date date)
-
isInside
public boolean isInside(LocalDate date)
-
isInside
public boolean isInside(Date date)
-
isAfter
public boolean isAfter(Date date)
-
isAfter
public boolean isAfter(LocalDateTime date)
-
isAfter
public boolean isAfter(LocalDate date)
-
isNull
public boolean isNull()
-
getRenderDates
public String getRenderDates()
-
main
public static void main(String[] args) throws ParseException
- Throws:
ParseException
-
-