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.
  • 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 a SptViewerConfig record class.
      Parameters:
      showName - the value for the showName record component
      showRhythm - the value for the showRhythm record component
      showParentSection - the value for the showParentSection record component
      showTimeSignature - the value for the showTimeSignature record component
      multiSelect - the value for the multiSelect record component
      visibleRPs - the value for the visibleRPs record component
  • Method Details

    • setShowName

      public SptViewerConfig setShowName(boolean b)
    • setShowRhythm

      public SptViewerConfig setShowRhythm(boolean b)
    • setShowParentSection

      public SptViewerConfig setShowParentSection(boolean b)
    • setShowTimeSignature

      public SptViewerConfig setShowTimeSignature(boolean b)
    • setMultiSelect

      public SptViewerConfig setMultiSelect(SptViewerConfig.MultiSelect ms)
    • setVisibleRPs

      public SptViewerConfig setVisibleRPs(List<RhythmParameter<?>> rps)
    • 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 the compare method from their corresponding wrapper classes.
      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.
    • showName

      public boolean showName()
      Returns the value of the showName record component.
      Returns:
      the value of the showName record component
    • showRhythm

      public boolean showRhythm()
      Returns the value of the showRhythm record component.
      Returns:
      the value of the showRhythm record component
    • showParentSection

      public boolean showParentSection()
      Returns the value of the showParentSection record component.
      Returns:
      the value of the showParentSection record component
    • showTimeSignature

      public boolean showTimeSignature()
      Returns the value of the showTimeSignature record component.
      Returns:
      the value of the showTimeSignature record component
    • multiSelect

      public SptViewerConfig.MultiSelect multiSelect()
      Returns the value of the multiSelect record component.
      Returns:
      the value of the multiSelect record component
    • visibleRPs

      public List<RhythmParameter<?>> visibleRPs()
      Returns the value of the visibleRPs record component.
      Returns:
      the value of the visibleRPs record component