Class DatePrice
java.lang.Object
org.ojalgo.data.domain.finance.series.DatePrice
- All Implemented Interfaces:
Comparable<PrimitiveNumber>
,Map<LocalDate,
,PrimitiveNumber> Map.Entry<LocalDate,
,PrimitiveNumber> ComparableNumber<PrimitiveNumber>
,EntryPair<LocalDate,
,PrimitiveNumber> EntryPair.KeyedPrimitive<LocalDate>
,KeyValue<LocalDate,
,PrimitiveNumber> NumberDefinition
,PrimitiveNumber
- Direct Known Subclasses:
AlphaVantageParser.Data
,DatePrice.DefaultDP
,IEXTradingParser.Data
,YahooParser.Data
-
Nested Class Summary
Nested ClassesNested 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 org.ojalgo.type.PrimitiveNumber
PrimitiveNumber.BoxedByte, PrimitiveNumber.BoxedDouble, PrimitiveNumber.BoxedFloat, PrimitiveNumber.BoxedInt, PrimitiveNumber.BoxedLong, PrimitiveNumber.BoxedShort
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DatePrice
(CharSequence text) protected
DatePrice
(CharSequence text, DateTimeFormatter formatter) protected
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(PrimitiveNumber reference) boolean
containsKey
(Object key) boolean
containsValue
(Object value) final double
boolean
final LocalDate
getKey()
abstract double
getPrice()
int
hashCode()
keySet()
static DatePrice
of
(CharSequence date, double price) static DatePrice
of
(CharSequence date, CharSequence price) static DatePrice
of
(CharSequence date, DateTimeFormatter formatter, double price) static DatePrice
of
(CharSequence date, DateTimeFormatter formatter, CharSequence price) static DatePrice
static DatePrice
of
(LocalDate date, CharSequence price) final 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
-
Field Details
-
date
-
-
Constructor Details
-
DatePrice
-
DatePrice
-
DatePrice
-
-
Method Details
-
of
-
of
-
of
-
of
-
of
-
of
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PrimitiveNumber>
-
containsKey
- Specified by:
containsKey
in interfaceMap<LocalDate,
PrimitiveNumber>
-
containsValue
- Specified by:
containsValue
in interfaceMap<LocalDate,
PrimitiveNumber>
-
doubleValue
public final double doubleValue()- Specified by:
doubleValue
in interfaceNumberDefinition
-
equals
- Specified by:
equals
in interfaceMap<LocalDate,
PrimitiveNumber> - Specified by:
equals
in interfaceMap.Entry<LocalDate,
PrimitiveNumber> - Overrides:
equals
in classObject
-
get
- Specified by:
get
in interfaceMap<LocalDate,
PrimitiveNumber>
-
getKey
- Specified by:
getKey
in interfaceKeyValue<LocalDate,
PrimitiveNumber> - Specified by:
getKey
in interfaceMap.Entry<LocalDate,
PrimitiveNumber>
-
getPrice
public abstract double getPrice() -
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceMap<LocalDate,
PrimitiveNumber> - Specified by:
hashCode
in interfaceMap.Entry<LocalDate,
PrimitiveNumber> - Overrides:
hashCode
in classObject
-
keySet
- Specified by:
keySet
in interfaceMap<LocalDate,
PrimitiveNumber>
-
toString
-