Record Class RP_SYS_OverrideTracksValue.Override
java.lang.Object
java.lang.Record
org.jjazz.rhythmmusicgeneration.api.RP_SYS_OverrideTracksValue.Override
- Record Components:
rvDest- Can not be null. Rhythm container must implement MusicGeneratorProvidervariation- rvDest's rhythm variation. If null, the music generator should try to reuse the same variation than the source RhythmVoice.
- Enclosing class:
RP_SYS_OverrideTracksValue
public static record RP_SYS_OverrideTracksValue.Override(RhythmVoice rvDest, String variation)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOverride(RhythmVoice rvDest, String variation) Creates an instance of aOverriderecord 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.rvDest()Returns the value of thervDestrecord component.Return a new Override with variation set to newVariation.set(RhythmVoice newRvDest) Return a new Override with rvDest set to newRvDest.final StringtoString()Returns a string representation of this record class.Returns the value of thevariationrecord component.
-
Constructor Details
-
Method Details
-
set
Return a new Override with rvDest set to newRvDest.- Parameters:
newRvDest-- Returns:
-
set
Return a new Override with variation set to newVariation.- Parameters:
newVariation-- Returns:
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
rvDest
-
variation
-