Package ucar.nc2.grib.coord
Class TimeCoordIntvDateValue
- java.lang.Object
-
- ucar.nc2.grib.coord.TimeCoordIntvDateValue
-
- All Implemented Interfaces:
Comparable<TimeCoordIntvDateValue>
@Immutable public class TimeCoordIntvDateValue extends Object implements Comparable<TimeCoordIntvDateValue>
Time intervals represented by start and end CalendarDate.
-
-
Constructor Summary
Constructors Constructor Description TimeCoordIntvDateValue(CalendarDate start, CalendarDate end)
TimeCoordIntvDateValue(CalendarDate start, CalendarPeriod period)
TimeCoordIntvDateValue(CalendarPeriod period, CalendarDate end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(TimeCoordIntvDateValue that)
TimeCoordIntvValue
convertReferenceDate(CalendarDate refDate, CalendarPeriod timeUnit)
boolean
equals(Object o)
CalendarDate
getEnd()
CalendarDate
getStart()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
TimeCoordIntvDateValue
public TimeCoordIntvDateValue(CalendarPeriod period, CalendarDate end)
-
TimeCoordIntvDateValue
public TimeCoordIntvDateValue(CalendarDate start, CalendarPeriod period)
-
TimeCoordIntvDateValue
public TimeCoordIntvDateValue(CalendarDate start, CalendarDate end)
-
-
Method Detail
-
getStart
public CalendarDate getStart()
-
getEnd
public CalendarDate getEnd()
-
convertReferenceDate
public TimeCoordIntvValue convertReferenceDate(CalendarDate refDate, CalendarPeriod timeUnit)
-
compareTo
public int compareTo(@Nonnull TimeCoordIntvDateValue that)
- Specified by:
compareTo
in interfaceComparable<TimeCoordIntvDateValue>
-
-