Record Class Indicators.Adx
java.lang.Object
java.lang.Record
com.quantfinlib.indicators.Indicators.Adx
- Enclosing class:
Indicators
-
Constructor Summary
ConstructorsConstructorDescriptionAdx(double[] adx, double[] plusDi, double[] minusDi) Creates an instance of aAdxrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]adx()Returns the value of theadxrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.double[]minusDi()Returns the value of theminusDirecord component.double[]plusDi()Returns the value of theplusDirecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Adx
public Adx(double[] adx, double[] plusDi, double[] minusDi) Creates an instance of aAdxrecord class.- Parameters:
adx- the value for theadxrecord componentplusDi- the value for theplusDirecord componentminusDi- the value for theminusDirecord 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). -
adx
public double[] adx()Returns the value of theadxrecord component.- Returns:
- the value of the
adxrecord component
-
plusDi
public double[] plusDi()Returns the value of theplusDirecord component.- Returns:
- the value of the
plusDirecord component
-
minusDi
public double[] minusDi()Returns the value of theminusDirecord component.- Returns:
- the value of the
minusDirecord component
-