@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,
java.util.List<TimeCoord.Tinv> timeIntervals,
int[] time2runtime) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
estMemorySize() |
int |
getIndex(java.lang.Object val) |
int |
getSize() |
java.lang.String |
getTimeIntervalName()
Check if we all time intervals have the same length.
|
java.util.List<TimeCoord.Tinv> |
getTimeIntervals() |
Coordinate.Type |
getType() |
java.lang.Object |
getValue(int idx) |
java.util.List<? extends java.lang.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(java.util.Formatter info) |
void |
showInfo(java.util.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, java.util.List<TimeCoord.Tinv> timeIntervals, int[] time2runtime)
public java.util.List<TimeCoord.Tinv> getTimeIntervals()
public java.util.List<? extends java.lang.Object> getValues()
getValues
in interface Coordinate
public java.lang.Object getValue(int idx)
getValue
in interface Coordinate
public int getIndex(java.lang.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 java.lang.String getTimeIntervalName()
public CalendarDateRange makeCalendarDateRange(Calendar cal)
makeCalendarDateRange
in class CoordinateTimeAbstract
cal
- optional calendar, may be nullpublic 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
protected CoordinateTimeIntv makeBestFromComplete(int[] best, int n)
makeBestFromComplete
in class CoordinateTimeAbstract