Created
August 4, 2015 03:18
-
-
Save tjmaher/dc72b8497a17909a6a2b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public enum Instrument { | |
| BASS_DRUM("Bass Drum", 35), | |
| SIDE_STICK("Side Stick", 37), | |
| CLOSED_HIGH_HAT("Closed High Hat", 42), | |
| OPEN_HIGH_HAT("Open High Hat", 46); | |
| private String label; | |
| private int drumKey; | |
| Instrument(String label, int drumKey){ | |
| this.label = label; | |
| this.drumKey = drumKey; | |
| } | |
| public String getLabel(){ | |
| return this.label; | |
| } | |
| public int getDrumKey(){ | |
| return this.drumKey; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment