Record Class MusicalFormAnalyzer.Section
java.lang.Object
java.lang.Record
org.episteme.social.arts.music.MusicalFormAnalyzer.Section
- Enclosing class:
MusicalFormAnalyzer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theendMeasurerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thekeySignaturerecord component.label()Returns the value of thelabelrecord component.intReturns the value of thestartMeasurerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Section
Creates an instance of aSectionrecord class.- Parameters:
label- the value for thelabelrecord componentstartMeasure- the value for thestartMeasurerecord componentendMeasure- the value for theendMeasurerecord componentkeySignature- the value for thekeySignaturerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
startMeasure
public int startMeasure()Returns the value of thestartMeasurerecord component.- Returns:
- the value of the
startMeasurerecord component
-
endMeasure
public int endMeasure()Returns the value of theendMeasurerecord component.- Returns:
- the value of the
endMeasurerecord component
-
keySignature
Returns the value of thekeySignaturerecord component.- Returns:
- the value of the
keySignaturerecord component
-