Record Class SelectedSongPart

java.lang.Object
java.lang.Record
org.jjazz.ss_editor.api.SelectedSongPart
All Implemented Interfaces:
Comparable<SelectedSongPart>

public record SelectedSongPart(SongPart songPart) extends Record implements Comparable<SelectedSongPart>
A selected SongPart in the SongStructure editor.

  • Constructor Details

    • SelectedSongPart

      public SelectedSongPart(SongPart songPart)
      Creates an instance of a SelectedSongPart record class.
      Parameters:
      songPart - the value for the songPart record component
  • Method Details

    • equals

      public boolean equals(Object o)
      Relies on songPart identity only because used in a selection lookup.
      Specified by:
      equals in class Record
      Parameters:
      o -
      Returns:
    • hashCode

      public int hashCode()
      Relies on songPart identity only because used in a selection lookup.
      Specified by:
      hashCode in class Record
      Returns:
    • toString

      public 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
    • compareTo

      public int compareTo(SelectedSongPart other)
      Specified by:
      compareTo in interface Comparable<SelectedSongPart>
    • songPart

      public SongPart songPart()
      Returns the value of the songPart record component.
      Returns:
      the value of the songPart record component