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 DategetEndDate()LocalDategetEndLocalDate()StringgetRenderDates()DategetStartDate()LocalDategetStartLocalDate()booleanisAfter(LocalDate date)booleanisAfter(LocalDateTime date)booleanisAfter(Date date)booleanisBefore(Date date)booleanisInside(LocalDate date)booleanisInside(Date date)booleanisNull()static voidmain(String[] args)voidsetEndData(Date endDate)voidsetStartDate(Date startDate)StringtoString() 
 - 
 
- 
- 
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
 
 - 
 
 -