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 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 KeyValue
KeyValue.Dual<T>Nested classes/interfaces inherited from interface PrimitiveNumber
PrimitiveNumber.BoxedByte, PrimitiveNumber.BoxedDouble, PrimitiveNumber.BoxedFloat, PrimitiveNumber.BoxedInt, PrimitiveNumber.BoxedLong, PrimitiveNumber.BoxedShort -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDatePrice(CharSequence text) protectedDatePrice(CharSequence text, DateTimeFormatter formatter) protected -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(PrimitiveNumber reference) booleancontainsKey(Object key) booleancontainsValue(Object value) final doublebooleanfinal LocalDategetKey()abstract doublegetPrice()inthashCode()keySet()static DatePriceof(CharSequence date, double price) static DatePriceof(CharSequence date, CharSequence price) static DatePriceof(CharSequence date, DateTimeFormatter formatter, double price) static DatePriceof(CharSequence date, DateTimeFormatter formatter, CharSequence price) static DatePricestatic DatePriceof(LocalDate date, CharSequence price) final StringtoString()Methods inherited from interface EntryPair
asKeyTo, asKeyTo, asKeyTo, asKeyTo, asKeyTo, asKeyTo, asKeyTo, asValueTo, clear, entrySet, isEmpty, put, putAll, remove, setValue, sizeMethods inherited from interface EntryPair.KeyedPrimitive
getValue, right, second, valuesMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface 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:
compareToin interfaceComparable<PrimitiveNumber>
-
containsKey
- Specified by:
containsKeyin interfaceMap<LocalDate, PrimitiveNumber>
-
containsValue
- Specified by:
containsValuein interfaceMap<LocalDate, PrimitiveNumber>
-
doubleValue
public final double doubleValue()- Specified by:
doubleValuein interfaceNumberDefinition
-
equals
-
get
- Specified by:
getin interfaceMap<LocalDate, PrimitiveNumber>
-
getKey
- Specified by:
getKeyin interfaceKeyValue<LocalDate, PrimitiveNumber>- Specified by:
getKeyin interfaceMap.Entry<LocalDate, PrimitiveNumber>
-
getPrice
public abstract double getPrice() -
hashCode
public int hashCode()- Specified by:
hashCodein interfaceMap<LocalDate, PrimitiveNumber>- Specified by:
hashCodein interfaceMap.Entry<LocalDate, PrimitiveNumber>- Overrides:
hashCodein classObject
-
keySet
-
toString
-