Record Class Indicators.StochRsi
java.lang.Object
java.lang.Record
com.quantfinlib.indicators.Indicators.StochRsi
- Enclosing class:
Indicators
-
Constructor Summary
ConstructorsConstructorDescriptionStochRsi(double[] k, double[] d) Creates an instance of aStochRsirecord class. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]d()Returns the value of thedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.double[]k()Returns the value of thekrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StochRsi
public StochRsi(double[] k, double[] d) Creates an instance of aStochRsirecord class.- Parameters:
k- the value for thekrecord componentd- the value for thedrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
k
public double[] k()Returns the value of thekrecord component.- Returns:
- the value of the
krecord component
-
d
public double[] d()Returns the value of thedrecord component.- Returns:
- the value of the
drecord component
-