Record Class Indicators.Ichimoku

java.lang.Object
java.lang.Record
com.quantfinlib.indicators.Indicators.Ichimoku
Enclosing class:
Indicators

public static record Indicators.Ichimoku(double[] tenkan, double[] kijun, double[] senkouA, double[] senkouB, double[] chikou) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Ichimoku(double[] tenkan, double[] kijun, double[] senkouA, double[] senkouB, double[] chikou)
    Creates an instance of a Ichimoku record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double[]
    Returns the value of the chikou record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    double[]
    Returns the value of the kijun record component.
    double[]
    Returns the value of the senkouA record component.
    double[]
    Returns the value of the senkouB record component.
    double[]
    Returns the value of the tenkan record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Ichimoku

      public Ichimoku(double[] tenkan, double[] kijun, double[] senkouA, double[] senkouB, double[] chikou)
      Creates an instance of a Ichimoku record class.
      Parameters:
      tenkan - the value for the tenkan record component
      kijun - the value for the kijun record component
      senkouA - the value for the senkouA record component
      senkouB - the value for the senkouB record component
      chikou - the value for the chikou record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • tenkan

      public double[] tenkan()
      Returns the value of the tenkan record component.
      Returns:
      the value of the tenkan record component
    • kijun

      public double[] kijun()
      Returns the value of the kijun record component.
      Returns:
      the value of the kijun record component
    • senkouA

      public double[] senkouA()
      Returns the value of the senkouA record component.
      Returns:
      the value of the senkouA record component
    • senkouB

      public double[] senkouB()
      Returns the value of the senkouB record component.
      Returns:
      the value of the senkouB record component
    • chikou

      public double[] chikou()
      Returns the value of the chikou record component.
      Returns:
      the value of the chikou record component