@Immutable public class CoordinateRuntime extends java.lang.Object implements Coordinate
Modifier and Type | Class and Description |
---|---|
static class |
CoordinateRuntime.Builder1 |
static class |
CoordinateRuntime.Builder2 |
Coordinate.Type
Constructor and Description |
---|
CoordinateRuntime(java.util.List<java.lang.Long> runtimeSorted,
CalendarPeriod timeUnit) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
estMemorySize() |
int |
getCode() |
CalendarDate |
getFirstDate() |
int |
getIndex(java.lang.Object val) |
CalendarDate |
getLastDate() |
java.lang.String |
getName() |
java.util.List<java.lang.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() |
java.lang.String |
getUnit() |
java.lang.Object |
getValue(int idx) |
java.util.List<? extends java.lang.Object> |
getValues() |
int |
hashCode() |
void |
setName(java.lang.String name) |
void |
showCoords(java.util.Formatter info) |
void |
showInfo(java.util.Formatter info,
Indent indent) |
public CoordinateRuntime(java.util.List<java.lang.Long> runtimeSorted, CalendarPeriod timeUnit)
public CalendarPeriod getTimeUnits()
public CalendarDate getRuntimeDate(int idx)
public long getRuntime(int idx)
public java.util.List<java.lang.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 java.lang.String getUnit()
getUnit
in interface Coordinate
public java.lang.String getName()
getName
in interface Coordinate
public void setName(java.lang.String name)
public int getCode()
getCode
in interface Coordinate
public CalendarDate getFirstDate()
public CalendarDate getLastDate()
public java.util.List<? extends java.lang.Object> getValues()
getValues
in interface Coordinate
public int getIndex(java.lang.Object val)
getIndex
in interface Coordinate
public java.lang.Object getValue(int idx)
getValue
in interface Coordinate
public void showInfo(java.util.Formatter info, Indent indent)
showInfo
in interface Coordinate
public void showCoords(java.util.Formatter info)
showCoords
in interface Coordinate
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object