Skip to content

Instantly share code, notes, and snippets.

@cosbor11
Created April 7, 2016 03:46
Show Gist options
  • Select an option

  • Save cosbor11/ed93804cd9b61fa442321986e08d2068 to your computer and use it in GitHub Desktop.

Select an option

Save cosbor11/ed93804cd9b61fa442321986e08d2068 to your computer and use it in GitHub Desktop.
A set of constants that outline the effects of a beverage
public enum Beverage
{
BEER("Im feeling dangerous", "Lets makeout on a plane and annoy the people around me!", "Hold my hair back"),
WATER("Soooo thirsty", "Satisfied", "I gotta pee"),
COFFEE("Very Sleepy", "Bouncing off the walls", "Zzzzzzzzzz");
protected String preConsumption;
protected String duringConsumption;
protected String afterConsumption;
/**
* Constructor for Beverage includes the descriptions of the effects of the beverage
* @param preConsumption How you are feeling prior to consuming a beverage
* @param duringConsumption How you feel during the consumption of a beverage
* @param afterConsumption How you feel after consuming a beverage
*/
Beverage(String preConsumption, String duringConsumption, String afterConsumption)
{
this.preConsumption = preConsumption;
this.duringConsumption = duringConsumption;
this.afterConsumption = afterConsumption;
}
// Getters and setters
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment