Record Class RankingEngine.ScoredStock
java.lang.Object
java.lang.Record
com.quantfinlib.screener.RankingEngine.ScoredStock
- Enclosing class:
RankingEngine
-
Constructor Summary
ConstructorsConstructorDescriptionScoredStock(StockSnapshot stock, double score) Creates an instance of aScoredStockrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublescore()Returns the value of thescorerecord component.stock()Returns the value of thestockrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScoredStock
Creates an instance of aScoredStockrecord class.- Parameters:
stock- the value for thestockrecord componentscore- the value for thescorerecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
stock
Returns the value of thestockrecord component.- Returns:
- the value of the
stockrecord component
-
score
public double score()Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-