Record Class Indicators.Donchian
java.lang.Object
java.lang.Record
com.quantfinlib.indicators.Indicators.Donchian
- Enclosing class:
Indicators
public static record Indicators.Donchian(double[] upper, double[] middle, double[] lower)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDonchian(double[] upper, double[] middle, double[] lower) Creates an instance of aDonchianrecord 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.double[]lower()Returns the value of thelowerrecord component.double[]middle()Returns the value of themiddlerecord component.final StringtoString()Returns a string representation of this record class.double[]upper()Returns the value of theupperrecord component.
-
Constructor Details
-
Donchian
public Donchian(double[] upper, double[] middle, double[] lower) Creates an instance of aDonchianrecord class.- Parameters:
upper- the value for theupperrecord componentmiddle- the value for themiddlerecord componentlower- the value for thelowerrecord 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). -
upper
public double[] upper()Returns the value of theupperrecord component.- Returns:
- the value of the
upperrecord component
-
middle
public double[] middle()Returns the value of themiddlerecord component.- Returns:
- the value of the
middlerecord component
-
lower
public double[] lower()Returns the value of thelowerrecord component.- Returns:
- the value of the
lowerrecord component
-