- 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 classDatePrice.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.LocalDatedate
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(PrimitiveNumber reference)booleancontainsKey(java.lang.Object key)booleancontainsValue(java.lang.Object value)doubledoubleValue()booleanequals(java.lang.Object obj)PrimitiveNumberget(java.lang.Object key)java.time.LocalDategetKey()abstract doublegetPrice()inthashCode()java.util.Set<java.time.LocalDate>keySet()static DatePriceof(java.lang.CharSequence date, double price)static DatePriceof(java.lang.CharSequence date, java.lang.CharSequence price)static DatePriceof(java.lang.CharSequence date, java.time.format.DateTimeFormatter formatter, double price)static DatePriceof(java.lang.CharSequence date, java.time.format.DateTimeFormatter formatter, java.lang.CharSequence price)static DatePriceof(java.time.LocalDate date, double price)static DatePriceof(java.time.LocalDate date, java.lang.CharSequence price)java.lang.StringtoString()-
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:
compareToin interfacejava.lang.Comparable<PrimitiveNumber>
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKeyin interfacejava.util.Map<java.time.LocalDate,PrimitiveNumber>
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValuein interfacejava.util.Map<java.time.LocalDate,PrimitiveNumber>
-
doubleValue
public final double doubleValue()
- Specified by:
doubleValuein interfaceNumberDefinition
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacejava.util.Map<java.time.LocalDate,PrimitiveNumber>- Specified by:
equalsin interfacejava.util.Map.Entry<java.time.LocalDate,PrimitiveNumber>- Overrides:
equalsin classjava.lang.Object
-
get
public PrimitiveNumber get(java.lang.Object key)
- Specified by:
getin interfacejava.util.Map<java.time.LocalDate,PrimitiveNumber>
-
getKey
public final java.time.LocalDate getKey()
- Specified by:
getKeyin interfaceKeyValue<java.time.LocalDate,PrimitiveNumber>- Specified by:
getKeyin interfacejava.util.Map.Entry<java.time.LocalDate,PrimitiveNumber>
-
getPrice
public abstract double getPrice()
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.util.Map<java.time.LocalDate,PrimitiveNumber>- Specified by:
hashCodein interfacejava.util.Map.Entry<java.time.LocalDate,PrimitiveNumber>- Overrides:
hashCodein classjava.lang.Object
-
keySet
public java.util.Set<java.time.LocalDate> keySet()
- Specified by:
keySetin interfacejava.util.Map<java.time.LocalDate,PrimitiveNumber>
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-