java.lang.Object
provided.abcMusic.utils.ABCInstrument
Represents an instrument as a name and an integer value
- Author:
- swong
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
name
The name of the instrument -
value
private int valueThe integer value associated with the instrument.
-
-
Constructor Details
-
ABCInstrument
Constructor for the class- Parameters:
name
- the name of the instrumentvalue
- the instrument's associated integer value
-
-
Method Details
-
getName
Accessor for the name of the instrument- Returns:
- the name of the instrument
-
getValue
public int getValue()Accessor for the integer value associated with this instrument.- Returns:
- the integer value for this instrument
-
toString
Returns the string representation of this class
-