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 boolean
equals(Object o)
CalendarDateRange
extend(CalendarDateRange other)
CalendarDuration
getDuration()
long
getDurationInSecs()
CalendarDate
getEnd()
CalendarDuration
getResolution()
CalendarDate
getStart()
int
hashCode()
boolean
includes(CalendarDate cd)
CalendarDateRange
intersect(CalendarDateRange clip)
boolean
intersects(CalendarDateRange o)
boolean
intersects(CalendarDate start, CalendarDate end)
boolean
isPoint()
static CalendarDateRange
of(Date start, Date end)
static CalendarDateRange
of(CalendarDate start, CalendarDate end)
static CalendarDateRange
of(DateRange dr)
Deprecated.void
setResolution()
DateRange
toDateRange()
Deprecated.String
toString()
-
-
-
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
-
-