Package ucar.nc2.time
Class CalendarDateRange
- java.lang.Object
-
- ucar.nc2.time.CalendarDateRange
-
@Immutable public class CalendarDateRange extends Object
A range of CalendarDates.- Since:
- 3/21/11
-
-
Constructor Summary
Constructors Constructor Description CalendarDateRange(CalendarDate start, long durationInSecs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object o)CalendarDateRangeextend(CalendarDateRange other)CalendarDurationgetDuration()longgetDurationInSecs()CalendarDategetEnd()CalendarDurationgetResolution()CalendarDategetStart()inthashCode()booleanincludes(CalendarDate cd)CalendarDateRangeintersect(CalendarDateRange clip)booleanintersects(CalendarDateRange o)booleanintersects(CalendarDate start, CalendarDate end)booleanisPoint()static CalendarDateRangeof(Date start, Date end)static CalendarDateRangeof(CalendarDate start, CalendarDate end)static CalendarDateRangeof(DateRange dr)Deprecated.voidsetResolution()DateRangetoDateRange()Deprecated.StringtoString()
-
-
-
Constructor Detail
-
CalendarDateRange
public CalendarDateRange(CalendarDate start, long durationInSecs)
-
-
Method Detail
-
of
public static CalendarDateRange of(CalendarDate start, CalendarDate end)
-
of
public static CalendarDateRange of(Date start, Date end)
-
getStart
public CalendarDate getStart()
-
getEnd
public CalendarDate getEnd()
-
getDurationInSecs
public long getDurationInSecs()
-
getDuration
public CalendarDuration getDuration()
-
getResolution
public CalendarDuration getResolution()
-
setResolution
public void setResolution()
-
intersects
public boolean intersects(CalendarDateRange o)
-
intersects
public boolean intersects(CalendarDate start, CalendarDate end)
-
includes
public boolean includes(CalendarDate cd)
-
intersect
public CalendarDateRange intersect(CalendarDateRange clip)
-
extend
public CalendarDateRange extend(CalendarDateRange other)
-
isPoint
public boolean isPoint()
-
of
public static CalendarDateRange of(DateRange dr)
Deprecated.Does not handle non-standard calendars
-
toDateRange
public DateRange toDateRange()
Deprecated.Does not handle non-standard calendars
-
-