Record Class GrowthAnalyzer.GrowthPhase

java.lang.Object
java.lang.Record
sc.fiji.snt.analysis.growth.GrowthAnalyzer.GrowthPhase
Enclosing class:
GrowthAnalyzer

public static record GrowthAnalyzer.GrowthPhase(int startIndex, int endIndex, double startTime, double endTime, double duration, double averageRate, double lengthChange, GrowthAnalyzer.GrowthPhaseType type) extends Record
Represents a growth phase with specific characteristics
  • Constructor Summary

    Constructors
    Constructor
    Description
    GrowthPhase(int startIndex, int endIndex, double startTime, double endTime, double duration, double averageRate, double lengthChange, GrowthAnalyzer.GrowthPhaseType type)
    Creates an instance of a GrowthPhase record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the value of the averageRate record component.
    double
    Returns the value of the duration record component.
    int
    Returns the value of the endIndex record component.
    double
    Returns the value of the endTime 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 lengthChange record component.
    int
    Returns the value of the startIndex record component.
    double
    Returns the value of the startTime record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the type record component.

    Methods inherited from class java.lang.Object

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

    • GrowthPhase

      public GrowthPhase(int startIndex, int endIndex, double startTime, double endTime, double duration, double averageRate, double lengthChange, GrowthAnalyzer.GrowthPhaseType type)
      Creates an instance of a GrowthPhase record class.
      Parameters:
      startIndex - the value for the startIndex record component
      endIndex - the value for the endIndex record component
      startTime - the value for the startTime record component
      endTime - the value for the endTime record component
      duration - the value for the duration record component
      averageRate - the value for the averageRate record component
      lengthChange - the value for the lengthChange record component
      type - the value for the type 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • startIndex

      public int startIndex()
      Returns the value of the startIndex record component.
      Returns:
      the value of the startIndex record component
    • endIndex

      public int endIndex()
      Returns the value of the endIndex record component.
      Returns:
      the value of the endIndex record component
    • startTime

      public double startTime()
      Returns the value of the startTime record component.
      Returns:
      the value of the startTime record component
    • endTime

      public double endTime()
      Returns the value of the endTime record component.
      Returns:
      the value of the endTime record component
    • duration

      public double duration()
      Returns the value of the duration record component.
      Returns:
      the value of the duration record component
    • averageRate

      public double averageRate()
      Returns the value of the averageRate record component.
      Returns:
      the value of the averageRate record component
    • lengthChange

      public double lengthChange()
      Returns the value of the lengthChange record component.
      Returns:
      the value of the lengthChange record component
    • type

      Returns the value of the type record component.
      Returns:
      the value of the type record component