@Immutable public class CoordinateTimeIntv extends CoordinateTimeAbstract implements Coordinate
Modifier and Type | Class and Description |
---|---|
static class |
CoordinateTimeIntv.Builder1 |
static class |
CoordinateTimeIntv.Builder2 |
Coordinate.Type
cdf, code, MIXED_INTERVALS, name, periodName, refDate, time2runtime, timeUnit
Constructor and Description |
---|
CoordinateTimeIntv(int code,
CalendarPeriod timeUnit,
CalendarDate refDate,
List<TimeCoord.Tinv> timeIntervals,
int[] time2runtime) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
estMemorySize() |
int |
getIndex(Object val) |
int |
getSize() |
String |
getTimeIntervalName()
Check if we all time intervals have the same length.
|
List<TimeCoord.Tinv> |
getTimeIntervals() |
Coordinate.Type |
getType() |
Object |
getValue(int idx) |
List<? extends Object> |
getValues() |
int |
hashCode() |
protected CoordinateTimeIntv |
makeBestFromComplete(int[] best,
int n) |
CalendarDateRange |
makeCalendarDateRange(Calendar cal)
Make calendar date range, using the first and last ending bounds
|
void |
showCoords(Formatter info) |
void |
showInfo(Formatter info,
Indent indent) |
getCode, getMasterRuntimeIndex, getName, getPeriod, getRefDate, getTime2runtime, getTimeUnit, getTimeUnitScale, getUnit, makeBestFromComplete, setName
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getCode, getName, getUnit
public CoordinateTimeIntv(int code, CalendarPeriod timeUnit, CalendarDate refDate, List<TimeCoord.Tinv> timeIntervals, int[] time2runtime)
public List<TimeCoord.Tinv> getTimeIntervals()
public List<? extends Object> getValues()
getValues
in interface Coordinate
public Object getValue(int idx)
getValue
in interface Coordinate
public int getIndex(Object val)
getIndex
in interface Coordinate
public int getSize()
getSize
in interface Coordinate
public int estMemorySize()
estMemorySize
in interface Coordinate
public Coordinate.Type getType()
getType
in interface Coordinate
public String getTimeIntervalName()
public CalendarDateRange makeCalendarDateRange(Calendar cal)
makeCalendarDateRange
in class CoordinateTimeAbstract
cal
- optional calendar, may be nullpublic void showInfo(Formatter info, Indent indent)
showInfo
in interface Coordinate
public void showCoords(Formatter info)
showCoords
in interface Coordinate
protected CoordinateTimeIntv makeBestFromComplete(int[] best, int n)
makeBestFromComplete
in class CoordinateTimeAbstract
Copyright © 1999–2015 UCAR/Unidata. All rights reserved.