Record Class InstrumentationAssistant.Instrument
java.lang.Object
java.lang.Record
org.episteme.social.arts.music.InstrumentationAssistant.Instrument
- Enclosing class:
InstrumentationAssistant
-
Constructor Summary
ConstructorsConstructorDescriptionInstrument(String name, int minMidi, int maxMidi, String family, String era) Creates an instance of aInstrumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.era()Returns the value of theerarecord component.family()Returns the value of thefamilyrecord component.final inthashCode()Returns a hash code value for this object.intmaxMidi()Returns the value of themaxMidirecord component.intminMidi()Returns the value of theminMidirecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Instrument
Creates an instance of aInstrumentrecord class.- Parameters:
name- the value for thenamerecord componentminMidi- the value for theminMidirecord componentmaxMidi- the value for themaxMidirecord componentfamily- the value for thefamilyrecord componentera- the value for theerarecord 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
-
minMidi
public int minMidi()Returns the value of theminMidirecord component.- Returns:
- the value of the
minMidirecord component
-
maxMidi
public int maxMidi()Returns the value of themaxMidirecord component.- Returns:
- the value of the
maxMidirecord component
-
family
Returns the value of thefamilyrecord component.- Returns:
- the value of the
familyrecord component
-
era
Returns the value of theerarecord component.- Returns:
- the value of the
erarecord component
-