@Immutable
public class TimeCoord
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TimeCoord.Tinv |
static class |
TimeCoord.TinvDate |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.Integer> |
coords |
protected java.util.List<TimeCoord.Tinv> |
intervals |
Constructor and Description |
---|
TimeCoord(int code,
CalendarDate runDate,
CalendarPeriod timeUnit,
java.util.List coords) |
TimeCoord(int code,
java.lang.String udunitString,
java.util.List coords) |
Modifier and Type | Method and Description |
---|---|
boolean |
equalsData(TimeCoord tother)
Instances that have the same runtime, timeUnit and coordinates are equal
|
static int |
findCoord(java.util.List<TimeCoord> timeCoords,
TimeCoord want)
Look through timeCoords to see if one matches want.
|
int |
findIdx(int offsetHour) |
int |
findInterval(TimeCoord.Tinv tinv) |
CalendarDateRange |
getCalendarRange() |
int |
getCode() |
java.util.List<java.lang.Integer> |
getCoords() |
java.util.List<TimeCoord.Tinv> |
getIntervals() |
java.lang.String |
getName() |
static int |
getOffset(CalendarDate refDate,
CalendarDate cd,
CalendarPeriod timeUnit) |
CalendarDate |
getRunDate() |
int |
getSize() |
java.lang.String |
getTimeIntervalName() |
CalendarPeriod |
getTimeUnit() |
double |
getTimeUnitScale() |
java.lang.String |
getType() |
java.lang.String |
getUnits() |
boolean |
isInterval() |
java.lang.String |
toString() |
protected java.util.List<java.lang.Integer> coords
protected java.util.List<TimeCoord.Tinv> intervals
public TimeCoord(int code, java.lang.String udunitString, java.util.List coords)
public TimeCoord(int code, CalendarDate runDate, CalendarPeriod timeUnit, java.util.List coords)
public static int getOffset(CalendarDate refDate, CalendarDate cd, CalendarPeriod timeUnit)
public CalendarDate getRunDate()
public CalendarDateRange getCalendarRange()
public boolean isInterval()
public java.util.List<java.lang.Integer> getCoords()
public java.util.List<TimeCoord.Tinv> getIntervals()
public java.lang.String getUnits()
public double getTimeUnitScale()
public CalendarPeriod getTimeUnit()
public int getCode()
public java.lang.String getName()
public java.lang.String getType()
public int getSize()
public java.lang.String getTimeIntervalName()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equalsData(TimeCoord tother)
tother
- compare this TimeCoord's datapublic int findInterval(TimeCoord.Tinv tinv)
public int findIdx(int offsetHour)
public static int findCoord(java.util.List<TimeCoord> timeCoords, TimeCoord want)
timeCoords
- look through this listwant
- find equivilent