Class DatePrice
- java.lang.Object
-
- org.ojalgo.data.domain.finance.series.DatePrice
-
- All Implemented Interfaces:
java.lang.Comparable<PrimitiveNumber>
,java.util.Map<java.time.LocalDate,PrimitiveNumber>
,java.util.Map.Entry<java.time.LocalDate,PrimitiveNumber>
,ComparableNumber<PrimitiveNumber>
,EntryPair<java.time.LocalDate,PrimitiveNumber>
,EntryPair.KeyedPrimitive<java.time.LocalDate>
,KeyValue<java.time.LocalDate,PrimitiveNumber>
,NumberDefinition
,PrimitiveNumber
- Direct Known Subclasses:
AlphaVantageParser.Data
,DatePrice.DefaultDP
,IEXTradingParser.Data
,YahooParser.Data
public abstract class DatePrice extends java.lang.Object implements EntryPair.KeyedPrimitive<java.time.LocalDate>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
DatePrice.DefaultDP
-
Nested classes/interfaces inherited from interface org.ojalgo.type.keyvalue.EntryPair
EntryPair.KeyedPrimitive<K>, EntryPair.ObjectByte<K>, EntryPair.ObjectDouble<K>, EntryPair.ObjectFloat<K>, EntryPair.ObjectInt<K>, EntryPair.ObjectLong<K>, EntryPair.ObjectObject<K,V>, EntryPair.ObjectShort<K>
-
Nested classes/interfaces inherited from interface org.ojalgo.type.keyvalue.KeyValue
KeyValue.Dual<T>
-
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K extends java.lang.Object,V extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.ojalgo.type.PrimitiveNumber
PrimitiveNumber.BoxedByte, PrimitiveNumber.BoxedDouble, PrimitiveNumber.BoxedFloat, PrimitiveNumber.BoxedInt, PrimitiveNumber.BoxedLong, PrimitiveNumber.BoxedShort
-
-
Field Summary
Fields Modifier and Type Field Description java.time.LocalDate
date
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
compareTo(PrimitiveNumber reference)
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
double
doubleValue()
boolean
equals(java.lang.Object obj)
PrimitiveNumber
get(java.lang.Object key)
java.time.LocalDate
getKey()
abstract double
getPrice()
int
hashCode()
java.util.Set<java.time.LocalDate>
keySet()
static DatePrice
of(java.lang.CharSequence date, double price)
static DatePrice
of(java.lang.CharSequence date, java.lang.CharSequence price)
static DatePrice
of(java.lang.CharSequence date, java.time.format.DateTimeFormatter formatter, double price)
static DatePrice
of(java.lang.CharSequence date, java.time.format.DateTimeFormatter formatter, java.lang.CharSequence price)
static DatePrice
of(java.time.LocalDate date, double price)
static DatePrice
of(java.time.LocalDate date, java.lang.CharSequence price)
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ojalgo.type.keyvalue.EntryPair
asKeyTo, asKeyTo, asKeyTo, asKeyTo, asKeyTo, asKeyTo, asKeyTo, asValueTo, clear, entrySet, isEmpty, put, putAll, remove, setValue, size
-
Methods inherited from interface org.ojalgo.type.keyvalue.EntryPair.KeyedPrimitive
getValue, right, second, values
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Methods inherited from interface org.ojalgo.type.NumberDefinition
booleanValue, byteValue, floatValue, intValue, longValue, shortValue
-
-
-
-
Method Detail
-
of
public static DatePrice of(java.lang.CharSequence date, java.lang.CharSequence price)
-
of
public static DatePrice of(java.lang.CharSequence date, java.time.format.DateTimeFormatter formatter, java.lang.CharSequence price)
-
of
public static DatePrice of(java.lang.CharSequence date, java.time.format.DateTimeFormatter formatter, double price)
-
of
public static DatePrice of(java.lang.CharSequence date, double price)
-
of
public static DatePrice of(java.time.LocalDate date, java.lang.CharSequence price)
-
of
public static DatePrice of(java.time.LocalDate date, double price)
-
compareTo
public int compareTo(PrimitiveNumber reference)
- Specified by:
compareTo
in interfacejava.lang.Comparable<PrimitiveNumber>
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interfacejava.util.Map<java.time.LocalDate,PrimitiveNumber>
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interfacejava.util.Map<java.time.LocalDate,PrimitiveNumber>
-
doubleValue
public final double doubleValue()
- Specified by:
doubleValue
in interfaceNumberDefinition
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacejava.util.Map<java.time.LocalDate,PrimitiveNumber>
- Specified by:
equals
in interfacejava.util.Map.Entry<java.time.LocalDate,PrimitiveNumber>
- Overrides:
equals
in classjava.lang.Object
-
get
public PrimitiveNumber get(java.lang.Object key)
- Specified by:
get
in interfacejava.util.Map<java.time.LocalDate,PrimitiveNumber>
-
getKey
public final java.time.LocalDate getKey()
- Specified by:
getKey
in interfaceKeyValue<java.time.LocalDate,PrimitiveNumber>
- Specified by:
getKey
in interfacejava.util.Map.Entry<java.time.LocalDate,PrimitiveNumber>
-
getPrice
public abstract double getPrice()
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Map<java.time.LocalDate,PrimitiveNumber>
- Specified by:
hashCode
in interfacejava.util.Map.Entry<java.time.LocalDate,PrimitiveNumber>
- Overrides:
hashCode
in classjava.lang.Object
-
keySet
public java.util.Set<java.time.LocalDate> keySet()
- Specified by:
keySet
in interfacejava.util.Map<java.time.LocalDate,PrimitiveNumber>
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-