Record Class OrchestrationSolver.OrchestralBalance
java.lang.Object
java.lang.Record
org.episteme.social.arts.music.OrchestrationSolver.OrchestralBalance
- Enclosing class:
OrchestrationSolver
public static record OrchestrationSolver.OrchestralBalance(double woodwindIntensity, double brassIntensity, double stringsIntensity, double percussionIntensity)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOrchestralBalance(double woodwindIntensity, double brassIntensity, double stringsIntensity, double percussionIntensity) Creates an instance of aOrchestralBalancerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thebrassIntensityrecord 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 thepercussionIntensityrecord component.doubleReturns the value of thestringsIntensityrecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thewoodwindIntensityrecord component.
-
Constructor Details
-
OrchestralBalance
public OrchestralBalance(double woodwindIntensity, double brassIntensity, double stringsIntensity, double percussionIntensity) Creates an instance of aOrchestralBalancerecord class.- Parameters:
woodwindIntensity- the value for thewoodwindIntensityrecord componentbrassIntensity- the value for thebrassIntensityrecord componentstringsIntensity- the value for thestringsIntensityrecord componentpercussionIntensity- the value for thepercussionIntensityrecord 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 with thecomparemethod from their corresponding wrapper classes. -
woodwindIntensity
public double woodwindIntensity()Returns the value of thewoodwindIntensityrecord component.- Returns:
- the value of the
woodwindIntensityrecord component
-
brassIntensity
public double brassIntensity()Returns the value of thebrassIntensityrecord component.- Returns:
- the value of the
brassIntensityrecord component
-
stringsIntensity
public double stringsIntensity()Returns the value of thestringsIntensityrecord component.- Returns:
- the value of the
stringsIntensityrecord component
-
percussionIntensity
public double percussionIntensity()Returns the value of thepercussionIntensityrecord component.- Returns:
- the value of the
percussionIntensityrecord component
-