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 Summary
ConstructorsConstructorDescriptionSelectedSongPart(SongPart songPart) Creates an instance of aSelectedSongPartrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(SelectedSongPart other) booleanRelies on songPart identity only because used in a selection lookup.inthashCode()Relies on songPart identity only because used in a selection lookup.songPart()Returns the value of thesongPartrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
SelectedSongPart
Creates an instance of aSelectedSongPartrecord class.- Parameters:
songPart- the value for thesongPartrecord component
-
-
Method Details
-
equals
-
hashCode
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<SelectedSongPart>
-
songPart
Returns the value of thesongPartrecord component.- Returns:
- the value of the
songPartrecord component
-