Record Class Fundamentals
java.lang.Object
java.lang.Record
com.quantfinlib.screener.Fundamentals
public record Fundamentals(double marketCap, double peRatio, double pbRatio, double eps, double roe, double dividendYield, double debtToEquity)
extends Record
Fundamental data for one instrument. Use
Double.NaN for unknown
fields; fundamental filters never match on NaN values.-
Constructor Summary
ConstructorsConstructorDescriptionFundamentals(double marketCap, double peRatio, double pbRatio, double eps, double roe, double dividendYield, double debtToEquity) Creates an instance of aFundamentalsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thedebtToEquityrecord component.doubleReturns the value of thedividendYieldrecord component.doubleeps()Returns the value of theepsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of themarketCaprecord component.doublepbRatio()Returns the value of thepbRatiorecord component.doublepeRatio()Returns the value of thepeRatiorecord component.doubleroe()Returns the value of theroerecord component.final StringtoString()Returns a string representation of this record class.static Fundamentalsunknown()
-
Constructor Details
-
Fundamentals
public Fundamentals(double marketCap, double peRatio, double pbRatio, double eps, double roe, double dividendYield, double debtToEquity) Creates an instance of aFundamentalsrecord class.- Parameters:
marketCap- the value for themarketCaprecord componentpeRatio- the value for thepeRatiorecord componentpbRatio- the value for thepbRatiorecord componenteps- the value for theepsrecord componentroe- the value for theroerecord componentdividendYield- the value for thedividendYieldrecord componentdebtToEquity- the value for thedebtToEquityrecord component
-
-
Method Details
-
unknown
-
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 with thecomparemethod from their corresponding wrapper classes. -
marketCap
public double marketCap()Returns the value of themarketCaprecord component.- Returns:
- the value of the
marketCaprecord component
-
peRatio
public double peRatio()Returns the value of thepeRatiorecord component.- Returns:
- the value of the
peRatiorecord component
-
pbRatio
public double pbRatio()Returns the value of thepbRatiorecord component.- Returns:
- the value of the
pbRatiorecord component
-
eps
public double eps()Returns the value of theepsrecord component.- Returns:
- the value of the
epsrecord component
-
roe
public double roe()Returns the value of theroerecord component.- Returns:
- the value of the
roerecord component
-
dividendYield
public double dividendYield()Returns the value of thedividendYieldrecord component.- Returns:
- the value of the
dividendYieldrecord component
-
debtToEquity
public double debtToEquity()Returns the value of thedebtToEquityrecord component.- Returns:
- the value of the
debtToEquityrecord component
-