public class Cocktail extends Object implements Comparable<Cocktail>
| Constructor and Description |
|---|
Cocktail() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Cocktail other) |
Deque<String> |
getComments() |
long |
getId() |
Collection<String> |
getIngredientNames() |
List<Ingredient> |
getIngredients() |
String |
getInstructions() |
String |
getInstructionsAsHtml() |
String |
getName() |
String |
getPhotoUrl() |
String |
getRecipeUrl() |
void |
setComments(Deque<String> comments) |
void |
setId(long id) |
void |
setIngredients(List<Ingredient> ingredients) |
void |
setInstructions(String instructions) |
void |
setName(String name) |
void |
setPhotoUrl(String photoUrl) |
void |
setRecipeUrl(String recipeUrl) |
Cocktail |
withId(long id) |
Cocktail |
withIngredient(String quantity,
String name) |
Cocktail |
withInstructions(String instructions) |
Cocktail |
withName(String name) |
Cocktail |
withPhotoUrl(String photoUrl) |
Cocktail |
withRecipeUrl(String recipeUrl) |
public String getInstructionsAsHtml()
public Collection<String> getIngredientNames()
public int compareTo(Cocktail other)
compareTo in interface Comparable<Cocktail>public long getId()
public void setId(long id)
public List<Ingredient> getIngredients()
public void setIngredients(List<Ingredient> ingredients)
public String getInstructions()
public void setInstructions(String instructions)
public String getName()
public void setName(String name)
public String getPhotoUrl()
public void setPhotoUrl(String photoUrl)
public String getRecipeUrl()
public void setRecipeUrl(String recipeUrl)
public Cocktail withId(long id)
Copyright © 2013. All Rights Reserved.