@Immutable public class CoordinateRuntime extends Object implements Coordinate
| Modifier and Type | Class and Description |
|---|---|
static class |
CoordinateRuntime.Builder1 |
static class |
CoordinateRuntime.Builder2 |
Coordinate.Type| Constructor and Description |
|---|
CoordinateRuntime(List<Long> runtimeSorted,
CalendarPeriod timeUnit) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
estMemorySize() |
int |
getCode() |
CalendarDate |
getFirstDate() |
int |
getIndex(Object val) |
CalendarDate |
getLastDate() |
String |
getName() |
List<Double> |
getOffsetsInTimeUnits()
Get offsets from firstDate, in units of timeUnit
|
long |
getRuntime(int idx) |
CalendarDate |
getRuntimeDate(int idx) |
int |
getSize() |
CalendarPeriod |
getTimeUnits() |
Coordinate.Type |
getType() |
String |
getUnit() |
Object |
getValue(int idx) |
List<? extends Object> |
getValues() |
int |
hashCode() |
void |
setName(String name) |
void |
showCoords(Formatter info) |
void |
showInfo(Formatter info,
Indent indent) |
public CoordinateRuntime(List<Long> runtimeSorted, CalendarPeriod timeUnit)
public CalendarPeriod getTimeUnits()
public CalendarDate getRuntimeDate(int idx)
public long getRuntime(int idx)
public List<Double> getOffsetsInTimeUnits()
public int getSize()
getSize in interface Coordinatepublic Coordinate.Type getType()
getType in interface Coordinatepublic int estMemorySize()
estMemorySize in interface Coordinatepublic String getUnit()
getUnit in interface Coordinatepublic String getName()
getName in interface Coordinatepublic void setName(String name)
public int getCode()
getCode in interface Coordinatepublic CalendarDate getFirstDate()
public CalendarDate getLastDate()
public List<? extends Object> getValues()
getValues in interface Coordinatepublic int getIndex(Object val)
getIndex in interface Coordinatepublic Object getValue(int idx)
getValue in interface Coordinatepublic void showInfo(Formatter info, Indent indent)
showInfo in interface Coordinatepublic void showCoords(Formatter info)
showCoords in interface CoordinateCopyright © 1999-2015 UCAR/Unidata. All Rights Reserved.