Record Class SongPartParameter
java.lang.Object
java.lang.Record
org.jjazz.songstructure.api.SongPartParameter
Store a RP and its associated SongPart.
-
Constructor Summary
ConstructorsConstructorDescriptionSongPartParameter(SongPart spt, RhythmParameter<?> rp) Creates an instance of aSongPartParameterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.booleanTrue if the RhythmParameter is an instance of RP_Enumerable.rp()Returns the value of therprecord component.spt()Returns the value of thesptrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
SongPartParameter
Creates an instance of aSongPartParameterrecord class.- Parameters:
spt- the value for thesptrecord componentrp- the value for therprecord component
-
-
Method Details
-
isEnumerableRp
public boolean isEnumerableRp()True if the RhythmParameter is an instance of RP_Enumerable.- Returns:
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
hashCode
-
toString
-
spt
Returns the value of thesptrecord component.- Returns:
- the value of the
sptrecord component
-
rp
Returns the value of therprecord component.- Returns:
- the value of the
rprecord component
-