org.ojalgo.series
Class DateBigSeries
java.lang.Object
java.util.AbstractMap<K,V>
org.ojalgo.series.DateBigSeries
- All Implemented Interfaces:
- Map<Date,BigDecimal>, SortedMap<Date,BigDecimal>, BasicSeries<Date,BigDecimal>, TimeSeries<Date,BigDecimal>
public final class DateBigSeries
- extends AbstractMap<K,V>
DateBigSeries
- Author:
- apete
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
DateBigSeries
public DateBigSeries(Date aReference,
TimeUnit aResolution)
DateBigSeries
public DateBigSeries(TimeUnit aResolution)
headMap
public DateBigSeries headMap(Date aToKey)
subMap
public DateBigSeries subMap(Date aFromKey,
Date aToKey)
tailMap
public DateBigSeries tailMap(Date aFromKey)
getReference
public final Date getReference()
step
public final long step()
- Returns:
- The avergae number of millis between to subsequent keys.
step
public final Date step(Date anExternalKey)
- Description copied from interface:
TimeSeries
- Will increment the input key to the next expected "value".
clear
public void clear()
- Specified by:
clear in interface Map<K extends Comparable<K>,V extends Number>- Overrides:
clear in class AbstractMap<K extends Comparable<K>,V extends Number>
colour
public BasicSeries<K,V> colour(Color aPaint)
- Specified by:
colour in interface BasicSeries<K extends Comparable<K>,V extends Number>
comparator
public Comparator<? super K> comparator()
- Specified by:
comparator in interface SortedMap<K extends Comparable<K>,V extends Number>
containsKey
public boolean containsKey(Object aKey)
- Specified by:
containsKey in interface Map<K extends Comparable<K>,V extends Number>- Overrides:
containsKey in class AbstractMap<K extends Comparable<K>,V extends Number>
containsValue
public boolean containsValue(Object aValue)
- Specified by:
containsValue in interface Map<K extends Comparable<K>,V extends Number>- Overrides:
containsValue in class AbstractMap<K extends Comparable<K>,V extends Number>
entrySet
public Set<Map.Entry<K,V>> entrySet()
- Specified by:
entrySet in interface Map<K extends Comparable<K>,V extends Number>- Specified by:
entrySet in class AbstractMap<K extends Comparable<K>,V extends Number>
firstKey
public K firstKey()
- Specified by:
firstKey in interface SortedMap<K extends Comparable<K>,V extends Number>
firstValue
public V firstValue()
- Specified by:
firstValue in interface BasicSeries<K extends Comparable<K>,V extends Number>
get
public V get(Object aKey)
- Specified by:
get in interface Map<K extends Comparable<K>,V extends Number>- Overrides:
get in class AbstractMap<K extends Comparable<K>,V extends Number>
getColour
public Color getColour()
- Specified by:
getColour 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>
getPrimitiveKeys
public final long[] getPrimitiveKeys()
- Specified by:
getPrimitiveKeys in interface TimeSeries<K extends Comparable<K>,V extends Number>
getPrimitiveValues
public double[] getPrimitiveValues()
- Specified by:
getPrimitiveValues in interface BasicSeries<K extends Comparable<K>,V extends Number>
getResolution
public final TimeUnit getResolution()
- Specified by:
getResolution in interface TimeSeries<K extends Comparable<K>,V extends Number>
getTimeInMillisSeries
public final TimeInMillisSeries<V> getTimeInMillisSeries()
- Specified by:
getTimeInMillisSeries in interface TimeSeries<K extends Comparable<K>,V extends Number>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Map<K extends Comparable<K>,V extends Number>- Overrides:
isEmpty in class AbstractMap<K extends Comparable<K>,V extends Number>
lastKey
public K lastKey()
- Specified by:
lastKey in interface SortedMap<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(UnaryFunction<V> aFunc)
- Specified by:
modify in interface BasicSeries<K extends Comparable<K>,V extends Number>
name
public BasicSeries<K,V> name(String aName)
- Specified by:
name in interface BasicSeries<K extends Comparable<K>,V extends Number>
normalise
public void normalise(K aKey,
V aNormValue)
- Specified by:
normalise in interface TimeSeries<K extends Comparable<K>,V extends Number>
put
public V put(K aKey,
V aValue)
- Specified by:
put in interface Map<K extends Comparable<K>,V extends Number>- Overrides:
put in class AbstractMap<K extends Comparable<K>,V extends Number>
reconstruct
public final TimeSeries<K,V> reconstruct(K aFromKey,
K aToKey,
TimeUnit aResolution)
- Specified by:
reconstruct in interface TimeSeries<K extends Comparable<K>,V extends Number>
remove
public V remove(Object aKey)
- Specified by:
remove in interface Map<K extends Comparable<K>,V extends Number>- Overrides:
remove in class AbstractMap<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>
size
public int size()
- Specified by:
size in interface Map<K extends Comparable<K>,V extends Number>- Overrides:
size in class AbstractMap<K extends Comparable<K>,V extends Number>
toString
public String toString()
- Overrides:
toString in class AbstractMap<K extends Comparable<K>,V extends Number>