Record Class SptViewerConfig
java.lang.Object
java.lang.Record
org.jjazz.ss_editor.sptviewer.api.SptViewerConfig
public record SptViewerConfig(boolean showName, boolean showRhythm, boolean showParentSection, boolean showTimeSignature, SptViewerConfig.MultiSelect multiSelect, List<RhythmParameter<?>> visibleRPs)
extends Record
The UI config of a SptViewer.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSptViewerConfig(boolean showName, boolean showRhythm, boolean showParentSection, boolean showTimeSignature, SptViewerConfig.MultiSelect multiSelect, List<RhythmParameter<?>> visibleRPs) Creates an instance of aSptViewerConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themultiSelectrecord component.setShowName(boolean b) setShowParentSection(boolean b) setShowRhythm(boolean b) setShowTimeSignature(boolean b) setVisibleRPs(List<RhythmParameter<?>> rps) booleanshowName()Returns the value of theshowNamerecord component.booleanReturns the value of theshowParentSectionrecord component.booleanReturns the value of theshowRhythmrecord component.booleanReturns the value of theshowTimeSignaturerecord component.final StringtoString()Returns a string representation of this record class.List<RhythmParameter<?>> Returns the value of thevisibleRPsrecord component.
-
Constructor Details
-
SptViewerConfig
public SptViewerConfig() -
SptViewerConfig
public SptViewerConfig(boolean showName, boolean showRhythm, boolean showParentSection, boolean showTimeSignature, SptViewerConfig.MultiSelect multiSelect, List<RhythmParameter<?>> visibleRPs) Creates an instance of aSptViewerConfigrecord class.- Parameters:
showName- the value for theshowNamerecord componentshowRhythm- the value for theshowRhythmrecord componentshowParentSection- the value for theshowParentSectionrecord componentshowTimeSignature- the value for theshowTimeSignaturerecord componentmultiSelect- the value for themultiSelectrecord componentvisibleRPs- the value for thevisibleRPsrecord component
-
-
Method Details
-
setShowName
-
setShowRhythm
-
setShowParentSection
-
setShowTimeSignature
-
setMultiSelect
-
setVisibleRPs
-
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. -
showName
public boolean showName()Returns the value of theshowNamerecord component.- Returns:
- the value of the
showNamerecord component
-
showRhythm
public boolean showRhythm()Returns the value of theshowRhythmrecord component.- Returns:
- the value of the
showRhythmrecord component
-
showParentSection
public boolean showParentSection()Returns the value of theshowParentSectionrecord component.- Returns:
- the value of the
showParentSectionrecord component
-
showTimeSignature
public boolean showTimeSignature()Returns the value of theshowTimeSignaturerecord component.- Returns:
- the value of the
showTimeSignaturerecord component
-
multiSelect
Returns the value of themultiSelectrecord component.- Returns:
- the value of the
multiSelectrecord component
-
visibleRPs
Returns the value of thevisibleRPsrecord component.- Returns:
- the value of the
visibleRPsrecord component
-