Class CoordinationSet<N extends Comparable<N>>
- All Implemented Interfaces:
Serializable, Cloneable, Map<String, CalendarDateSeries<N>>
public class CoordinationSet<N extends Comparable<N>>
extends HashMap<String, CalendarDateSeries<N>>
A
CoordinationSet is used to coordinate a set of CalendarDateSeries instances.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCoordinationSet(int initialCapacity) CoordinationSet(int initialCapacity, float loadFactor) CoordinationSet(Collection<CalendarDateSeries<N>> seriesCollection) CoordinationSet(Collection<CalendarDateSeries<N>> seriesCollection, CalendarDateUnit resolution) CoordinationSet(Map<? extends String, ? extends CalendarDateSeries<N>> members) CoordinationSet(CalendarDateUnit resolution) -
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete()Will callCalendarDateSeries.complete()on each of the instances in this set.copy()private CoordinationSet<N> doPruneAndResample(CalendarDate firstKey, CalendarDate lastKey, CalendarDateUnit resolution) getValue(String series, CalendarDate date) prune()Returns a new CoordinationSet where all series have the same first and last keys, as well as a common (the highest common) resolution.prune(CalendarDateUnit resolution) Returns a new CoordinationSet where all series have the same first and last keys, as well as the specified resolution.put(CalendarDateSeries<N> series) Vill use the series' name as the key.resample(CalendarDateUnit resolution) Returns a new set of series each resampled to the supplied resolution.toString()Methods inherited from class HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class AbstractMap
equals, hashCode
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
myResolution
-
-
Constructor Details
-
CoordinationSet
public CoordinationSet() -
CoordinationSet
-
CoordinationSet
-
CoordinationSet
public CoordinationSet(Collection<CalendarDateSeries<N>> seriesCollection, CalendarDateUnit resolution) -
CoordinationSet
public CoordinationSet(int initialCapacity) -
CoordinationSet
public CoordinationSet(int initialCapacity, float loadFactor) -
CoordinationSet
-
-
Method Details
-
complete
public void complete()Will callCalendarDateSeries.complete()on each of the instances in this set. -
copy
-
get
- Specified by:
getin interfaceMap<String, CalendarDateSeries<N extends Comparable<N>>>- Overrides:
getin classHashMap<String, CalendarDateSeries<N extends Comparable<N>>>
-
get
-
getAllCalendarDates
-
getAllSeriesNames
-
getEarliestFirstKey
-
getEarliestLastKey
-
getLatestFirstKey
-
getLatestLastKey
-
getResolution
-
getValue
-
prune
Returns a new CoordinationSet where all series have the same first and last keys, as well as a common (the highest common) resolution. -
prune
Returns a new CoordinationSet where all series have the same first and last keys, as well as the specified resolution. -
put
Vill use the series' name as the key. Make sure you have set the name to something that uniquely identifies the series. -
resample
Returns a new set of series each resampled to the supplied resolution. No pruning! -
toString
- Overrides:
toStringin classAbstractMap<String, CalendarDateSeries<N extends Comparable<N>>>
-
doPruneAndResample
private CoordinationSet<N> doPruneAndResample(CalendarDate firstKey, CalendarDate lastKey, CalendarDateUnit resolution)
-