Record Class StockSnapshot
java.lang.Object
java.lang.Record
com.quantfinlib.screener.StockSnapshot
public record StockSnapshot(String symbol, BarSeries series, Fundamentals fundamentals)
extends Record
One screening candidate: symbol, price history, and fundamentals.
-
Constructor Summary
ConstructorsConstructorDescriptionStockSnapshot(String symbol, BarSeries series, Fundamentals fundamentals) Creates an instance of aStockSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefundamentalsrecord component.final inthashCode()Returns a hash code value for this object.doubleseries()Returns the value of theseriesrecord component.symbol()Returns the value of thesymbolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StockSnapshot
Creates an instance of aStockSnapshotrecord class.- Parameters:
symbol- the value for thesymbolrecord componentseries- the value for theseriesrecord componentfundamentals- the value for thefundamentalsrecord component
-
-
Method Details
-
lastClose
public double lastClose() -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
symbol
Returns the value of thesymbolrecord component.- Returns:
- the value of the
symbolrecord component
-
series
Returns the value of theseriesrecord component.- Returns:
- the value of the
seriesrecord component
-
fundamentals
Returns the value of thefundamentalsrecord component.- Returns:
- the value of the
fundamentalsrecord component
-