@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 Coordinate
public Coordinate.Type getType()
getType
in interface Coordinate
public int estMemorySize()
estMemorySize
in interface Coordinate
public String getUnit()
getUnit
in interface Coordinate
public String getName()
getName
in interface Coordinate
public void setName(String name)
public int getCode()
getCode
in interface Coordinate
public CalendarDate getFirstDate()
public CalendarDate getLastDate()
public List<? extends Object> getValues()
getValues
in interface Coordinate
public int getIndex(Object val)
getIndex
in interface Coordinate
public Object getValue(int idx)
getValue
in interface Coordinate
public void showInfo(Formatter info, Indent indent)
showInfo
in interface Coordinate
public void showCoords(Formatter info)
showCoords
in interface Coordinate
Copyright © 1999–2018 UCAR/Unidata. All rights reserved.