public class CoordinationSet<N extends Number> extends HashMap<String,CalendarDateSeries<N>>
CoordinationSet
is used to coordinate a set of CalendarDateSeries
instances.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
CoordinationSet() |
CoordinationSet(CalendarDateUnit resolution) |
CoordinationSet(Collection<CalendarDateSeries<N>> seriesCollection) |
CoordinationSet(Collection<CalendarDateSeries<N>> seriesCollection,
CalendarDateUnit resolution) |
CoordinationSet(int initialCapacity) |
CoordinationSet(int initialCapacity,
float loadFactor) |
CoordinationSet(Map<? extends String,? extends CalendarDateSeries<N>> members) |
Modifier and Type | Method and Description |
---|---|
void |
complete()
Will call
BasicSeries.NaturallySequenced.complete() on each of the instances in this set. |
CoordinationSet<N> |
copy() |
CalendarDateSeries<N> |
get(Object key) |
CalendarDateSeries<N> |
get(String seriesName) |
List<CalendarDate> |
getAllCalendarDates() |
List<String> |
getAllSeriesNames() |
CalendarDate |
getEarliestFirstKey() |
CalendarDate |
getEarliestLastKey() |
CalendarDate |
getLatestFirstKey() |
CalendarDate |
getLatestLastKey() |
CalendarDateUnit |
getResolution() |
N |
getValue(String series,
CalendarDate date) |
CoordinationSet<N> |
prune() |
CoordinationSet<N> |
prune(CalendarDateUnit resolution)
Will prune and resample the data
|
CalendarDateSeries<N> |
put(CalendarDateSeries<N> series)
Vill use the series' name as the key.
|
CoordinationSet<N> |
resample(CalendarDateUnit resolution) |
String |
toString() |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode
public CoordinationSet()
public CoordinationSet(CalendarDateUnit resolution)
public CoordinationSet(Collection<CalendarDateSeries<N>> seriesCollection)
public CoordinationSet(Collection<CalendarDateSeries<N>> seriesCollection, CalendarDateUnit resolution)
public CoordinationSet(int initialCapacity)
public CoordinationSet(int initialCapacity, float loadFactor)
public CoordinationSet(Map<? extends String,? extends CalendarDateSeries<N>> members)
public void complete()
BasicSeries.NaturallySequenced.complete()
on each of the instances in this set.public CoordinationSet<N> copy()
public CalendarDateSeries<N> get(Object key)
public CalendarDateSeries<N> get(String seriesName)
public List<CalendarDate> getAllCalendarDates()
public CalendarDate getEarliestFirstKey()
public CalendarDate getEarliestLastKey()
public CalendarDate getLatestFirstKey()
public CalendarDate getLatestLastKey()
public CalendarDateUnit getResolution()
public N getValue(String series, CalendarDate date)
public CoordinationSet<N> prune()
public CoordinationSet<N> prune(CalendarDateUnit resolution)
public CalendarDateSeries<N> put(CalendarDateSeries<N> series)
public CoordinationSet<N> resample(CalendarDateUnit resolution)
resolution
- The new resolutionpublic String toString()
toString
in class AbstractMap<String,CalendarDateSeries<N extends Number>>
Copyright © 2019 Optimatika. All rights reserved.