@Immutable public class CoordinateTimeIntv extends CoordinateTimeAbstract implements Coordinate
| Modifier and Type | Class and Description |
|---|---|
static class |
CoordinateTimeIntv.Builder1 |
static class |
CoordinateTimeIntv.Builder2 |
Coordinate.Typecdf, code, MIXED_INTERVALS, name, refDate, time2runtime, timeUnit| Constructor and Description |
|---|
CoordinateTimeIntv(int code,
CalendarPeriod timeUnit,
CalendarDate refDate,
java.util.List<TimeCoordIntvValue> timeIntervals,
int[] time2runtime) |
| Modifier and Type | Method and Description |
|---|---|
Counters |
calcDistributions() |
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<TimeCoordIntvValue> |
getTimeIntervals() |
Coordinate.Type |
getType() |
java.lang.Object |
getValue(int idx) |
java.util.List<?> |
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, getNCoords, getOffsetInTimeUnits, getRefDate, getTime2runtime, getTimeUdUnit, getTimeUnit, getUnit, makeBestFromComplete, setName, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCode, getName, getNCoords, getUnitpublic CoordinateTimeIntv(int code,
CalendarPeriod timeUnit,
CalendarDate refDate,
java.util.List<TimeCoordIntvValue> timeIntervals,
int[] time2runtime)
public java.util.List<TimeCoordIntvValue> getTimeIntervals()
public java.util.List<?> getValues()
getValues in interface Coordinatepublic java.lang.Object getValue(int idx)
getValue in interface Coordinatepublic int getIndex(java.lang.Object val)
getIndex in interface Coordinatepublic int getSize()
getSize in interface Coordinatepublic int estMemorySize()
estMemorySize in interface Coordinatepublic Coordinate.Type getType()
getType in interface Coordinatepublic java.lang.String getTimeIntervalName()
public CalendarDateRange makeCalendarDateRange(Calendar cal)
makeCalendarDateRange in class CoordinateTimeAbstractcal - optional calendar, may be nullpublic void showInfo(java.util.Formatter info,
Indent indent)
showInfo in interface Coordinatepublic void showCoords(java.util.Formatter info)
showCoords in interface Coordinatepublic Counters calcDistributions()
calcDistributions in interface Coordinatepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectprotected CoordinateTimeIntv makeBestFromComplete(int[] best, int n)
makeBestFromComplete in class CoordinateTimeAbstract