Record Class RhythmInfo.RvInfo
java.lang.Object
java.lang.Record
org.jjazz.rhythmdatabase.api.RhythmInfo.RvInfo
- Record Components:
gmSubstitute- Can be nulldrumKit- Can be null
- All Implemented Interfaces:
Serializable
- Enclosing class:
RhythmInfo
public static record RhythmInfo.RvInfo(String name, GM1Instrument gmSubstitute, int preferredChannel, DrumKit drumKit, RhythmVoice.Type type)
extends Record
implements Serializable
A RhythmVoice descriptor.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRvInfo(String name, GM1Instrument gmSubstitute, int preferredChannel, DrumKit drumKit, RhythmVoice.Type type) Creates an instance of aRvInforecord class.RvInfo(RhythmVoice rv) -
Method Summary
Modifier and TypeMethodDescriptiondrumKit()Returns the value of thedrumKitrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegmSubstituterecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.intReturns the value of thepreferredChannelrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
RvInfo
-
RvInfo
public RvInfo(String name, GM1Instrument gmSubstitute, int preferredChannel, DrumKit drumKit, RhythmVoice.Type type) Creates an instance of aRvInforecord class.- Parameters:
name- the value for thenamerecord componentgmSubstitute- the value for thegmSubstituterecord componentpreferredChannel- the value for thepreferredChannelrecord componentdrumKit- the value for thedrumKitrecord componenttype- the value for thetyperecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
gmSubstitute
Returns the value of thegmSubstituterecord component.- Returns:
- the value of the
gmSubstituterecord component
-
preferredChannel
public int preferredChannel()Returns the value of thepreferredChannelrecord component.- Returns:
- the value of the
preferredChannelrecord component
-
drumKit
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-