|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprovided.util.ABCInstrument
public class ABCInstrument
Represents an instrument as a name and an integer value
| Field Summary | |
|---|---|
private java.lang.String |
name
The name of the instrument |
private int |
value
The integer value associated with the instrument. |
| Constructor Summary | |
|---|---|
ABCInstrument(java.lang.String name,
int value)
Constructor for the class |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Accessor for the name of the instrument |
int |
getValue()
Accessor for the integer value associated with this instrument. |
java.lang.String |
toString()
Returns the string representation of this class |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String name
private int value
| Constructor Detail |
|---|
public ABCInstrument(java.lang.String name,
int value)
name - the name of the instrumentvalue - the instrument's associated integer value| Method Detail |
|---|
public java.lang.String getName()
public int getValue()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||