org.ojalgo.series
Class CalendarDateSeries<V extends Number>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.TreeMap<K,V>
          extended by org.ojalgo.series.CalendarDateSeries<V>
All Implemented Interfaces:
Serializable, Cloneable, Map<CalendarDate,V>, NavigableMap<CalendarDate,V>, SortedMap<CalendarDate,V>, BasicSeries<CalendarDate,V>

public class CalendarDateSeries<V extends Number>
extends TreeMap<K,V>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
CalendarDateSeries()
           
CalendarDateSeries(CalendarDateUnit aResolution)
           
 
Method Summary
 I colour(Color aPaint)
           
 void complete()
           
 V firstValue()
           
 long getAverageStepSize()
           
 Color getColour()
           
 DataSeries getDataSeries()
           
 String getName()
           
 long[] getPrimitiveKeys()
           
 ExplicitTimeSeries getPrimitiveTimeSeries()
           
 double[] getPrimitiveValues()
           
 CalendarDateUnit getResolution()
           
 CalendarDateSeries<V> headMap(CalendarDate newToKey)
           
 CalendarDateSeries<V> headMap(CalendarDate newToKey, boolean newInclusive)
           
 V lastValue()
           
 void modify(BasicSeries<K,V> aLeftArg, BinaryFunction<V> aFunc)
           
 void modify(BinaryFunction<V> aFunc, BasicSeries<K,V> aRightArg)
           
 void modify(BinaryFunction<V> aFunc, V aRightArg)
           
 void modify(ParameterFunction<V> aFunc, int aParam)
           
 void modify(UnaryFunction<V> aFunc)
           
 void modify(V aLeftArg, BinaryFunction<V> aFunc)
           
 I name(String aName)
           
 V put(CalendarDate aKey, V aValue)
           
 V put(Calendar aKey, V aValue)
           
 V put(Date aKey, V aValue)
           
 V put(long aKey, V aValue)
           
 void putAll(Map<? extends CalendarDate,? extends V> aMap)
           
 CalendarDateSeries<V> resample(CalendarDate aFirstKey, CalendarDate aLastKey, CalendarDateUnit aResolution)
           
 CalendarDateSeries<V> resample(CalendarDateUnit aResolution)
           
 void setColour(Color aPaint)
           
 void setName(String aName)
           
 CalendarDate step(CalendarDate aKey)
           
 CalendarDateSeries<V> subMap(CalendarDate aFromKey, boolean inclusiveFromKey, CalendarDate aToKey, boolean inclusiveToKey)
           
 CalendarDateSeries<V> subMap(CalendarDate aFromKey, CalendarDate aKeyLimit)
           
 CalendarDateSeries<V> tailMap(CalendarDate aFromKey)
           
 CalendarDateSeries<V> tailMap(CalendarDate aFromKey, boolean inclusive)
           
 String toString()
           
 
Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.SortedMap
comparator, entrySet, firstKey, keySet, lastKey, values
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, remove, size
 

Constructor Detail

CalendarDateSeries

public CalendarDateSeries()

CalendarDateSeries

public CalendarDateSeries(CalendarDateUnit aResolution)
Method Detail

complete

public void complete()

getAverageStepSize

public long getAverageStepSize()

getPrimitiveKeys

public long[] getPrimitiveKeys()

getPrimitiveTimeSeries

public ExplicitTimeSeries getPrimitiveTimeSeries()

getResolution

public CalendarDateUnit getResolution()

headMap

public CalendarDateSeries<V> headMap(CalendarDate newToKey)
Specified by:
headMap in interface NavigableMap<CalendarDate,V extends Number>
Specified by:
headMap in interface SortedMap<CalendarDate,V extends Number>
Overrides:
headMap in class TreeMap<CalendarDate,V extends Number>

headMap

public CalendarDateSeries<V> headMap(CalendarDate newToKey,
                                     boolean newInclusive)
Specified by:
headMap in interface NavigableMap<CalendarDate,V extends Number>
Overrides:
headMap in class TreeMap<CalendarDate,V extends Number>

put

public V put(Calendar aKey,
             V aValue)

put

public V put(CalendarDate aKey,
             V aValue)
Specified by:
put in interface Map<CalendarDate,V extends Number>
Overrides:
put in class TreeMap<CalendarDate,V extends Number>

put

public V put(Date aKey,
             V aValue)

put

public V put(long aKey,
             V aValue)

putAll

public void putAll(Map<? extends CalendarDate,? extends V> aMap)
Specified by:
putAll in interface Map<CalendarDate,V extends Number>
Overrides:
putAll in class TreeMap<CalendarDate,V extends Number>

resample

public CalendarDateSeries<V> resample(CalendarDate aFirstKey,
                                      CalendarDate aLastKey,
                                      CalendarDateUnit aResolution)

resample

public CalendarDateSeries<V> resample(CalendarDateUnit aResolution)

step

public CalendarDate step(CalendarDate aKey)

subMap

public CalendarDateSeries<V> subMap(CalendarDate aFromKey,
                                    boolean inclusiveFromKey,
                                    CalendarDate aToKey,
                                    boolean inclusiveToKey)
Specified by:
subMap in interface NavigableMap<CalendarDate,V extends Number>
Overrides:
subMap in class TreeMap<CalendarDate,V extends Number>

subMap

public CalendarDateSeries<V> subMap(CalendarDate aFromKey,
                                    CalendarDate aKeyLimit)
Specified by:
subMap in interface NavigableMap<CalendarDate,V extends Number>
Specified by:
subMap in interface SortedMap<CalendarDate,V extends Number>
Overrides:
subMap in class TreeMap<CalendarDate,V extends Number>

tailMap

public CalendarDateSeries<V> tailMap(CalendarDate aFromKey)
Specified by:
tailMap in interface NavigableMap<CalendarDate,V extends Number>
Specified by:
tailMap in interface SortedMap<CalendarDate,V extends Number>
Overrides:
tailMap in class TreeMap<CalendarDate,V extends Number>

tailMap

public CalendarDateSeries<V> tailMap(CalendarDate aFromKey,
                                     boolean inclusive)
Specified by:
tailMap in interface NavigableMap<CalendarDate,V extends Number>
Overrides:
tailMap in class TreeMap<CalendarDate,V extends Number>

toString

public String toString()

colour

public I colour(Color aPaint)
Specified by:
colour in interface BasicSeries<K extends Comparable<K>,V extends Number>

firstValue

public V firstValue()
Specified by:
firstValue in interface BasicSeries<K extends Comparable<K>,V extends Number>

getColour

public Color getColour()
Specified by:
getColour in interface BasicSeries<K extends Comparable<K>,V extends Number>

getDataSeries

public DataSeries getDataSeries()
Specified by:
getDataSeries in interface BasicSeries<K extends Comparable<K>,V extends Number>

getName

public String getName()
Specified by:
getName in interface BasicSeries<K extends Comparable<K>,V extends Number>

getPrimitiveValues

public double[] getPrimitiveValues()
Specified by:
getPrimitiveValues in interface BasicSeries<K extends Comparable<K>,V extends Number>

lastValue

public V lastValue()
Specified by:
lastValue in interface BasicSeries<K extends Comparable<K>,V extends Number>

modify

public void modify(BasicSeries<K,V> aLeftArg,
                   BinaryFunction<V> aFunc)
Specified by:
modify in interface BasicSeries<K extends Comparable<K>,V extends Number>

modify

public void modify(BinaryFunction<V> aFunc,
                   BasicSeries<K,V> aRightArg)
Specified by:
modify in interface BasicSeries<K extends Comparable<K>,V extends Number>

modify

public void modify(BinaryFunction<V> aFunc,
                   V aRightArg)
Specified by:
modify in interface BasicSeries<K extends Comparable<K>,V extends Number>

modify

public void modify(ParameterFunction<V> aFunc,
                   int aParam)
Specified by:
modify in interface BasicSeries<K extends Comparable<K>,V extends Number>

modify

public void modify(UnaryFunction<V> aFunc)
Specified by:
modify in interface BasicSeries<K extends Comparable<K>,V extends Number>

modify

public void modify(V aLeftArg,
                   BinaryFunction<V> aFunc)
Specified by:
modify in interface BasicSeries<K extends Comparable<K>,V extends Number>

name

public I name(String aName)
Specified by:
name in interface BasicSeries<K extends Comparable<K>,V extends Number>

setColour

public void setColour(Color aPaint)
Specified by:
setColour in interface BasicSeries<K extends Comparable<K>,V extends Number>

setName

public void setName(String aName)
Specified by:
setName in interface BasicSeries<K extends Comparable<K>,V extends Number>