Skip to content

Instantly share code, notes, and snippets.

@tjmaher
Created August 4, 2015 03:18
Show Gist options
  • Select an option

  • Save tjmaher/dc72b8497a17909a6a2b to your computer and use it in GitHub Desktop.

Select an option

Save tjmaher/dc72b8497a17909a6a2b to your computer and use it in GitHub Desktop.
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