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 MusicGeneratorProvider
variation - 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 Details

    • Override

      public Override(RhythmVoice rvDest, String variation)
      Creates an instance of a Override record class.
      Parameters:
      rvDest - the value for the rvDest record component
      variation - the value for the variation record component
  • Method Details

    • set

      Return a new Override with rvDest set to newRvDest.
      Parameters:
      newRvDest -
      Returns:
    • set

      public RP_SYS_OverrideTracksValue.Override set(String newVariation)
      Return a new Override with variation set to newVariation.
      Parameters:
      newVariation -
      Returns:
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • rvDest

      public RhythmVoice rvDest()
      Returns the value of the rvDest record component.
      Returns:
      the value of the rvDest record component
    • variation

      public String variation()
      Returns the value of the variation record component.
      Returns:
      the value of the variation record component