Package sc.fiji.snt.analysis.growth
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
ConstructorsConstructorDescriptionGrowthPhase(int startIndex, int endIndex, double startTime, double endTime, double duration, double averageRate, double lengthChange, GrowthAnalyzer.GrowthPhaseType type) Creates an instance of aGrowthPhaserecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theaverageRaterecord component.doubleduration()Returns the value of thedurationrecord component.intendIndex()Returns the value of theendIndexrecord component.doubleendTime()Returns the value of theendTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thelengthChangerecord component.intReturns the value of thestartIndexrecord component.doubleReturns the value of thestartTimerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
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 aGrowthPhaserecord class.- Parameters:
startIndex- the value for thestartIndexrecord componentendIndex- the value for theendIndexrecord componentstartTime- the value for thestartTimerecord componentendTime- the value for theendTimerecord componentduration- the value for thedurationrecord componentaverageRate- the value for theaverageRaterecord componentlengthChange- the value for thelengthChangerecord componenttype- the value for thetyperecord component
-
-
Method Details
-
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. -
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. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
startIndex
public int startIndex()Returns the value of thestartIndexrecord component.- Returns:
- the value of the
startIndexrecord component
-
endIndex
public int endIndex()Returns the value of theendIndexrecord component.- Returns:
- the value of the
endIndexrecord component
-
startTime
public double startTime()Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-
endTime
public double endTime()Returns the value of theendTimerecord component.- Returns:
- the value of the
endTimerecord component
-
duration
public double duration()Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
averageRate
public double averageRate()Returns the value of theaverageRaterecord component.- Returns:
- the value of the
averageRaterecord component
-
lengthChange
public double lengthChange()Returns the value of thelengthChangerecord component.- Returns:
- the value of the
lengthChangerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-