public class Cocktail extends Object implements Comparable<Cocktail>, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Cocktail.Ingredient |
| Constructor and Description |
|---|
Cocktail() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Cocktail other) |
boolean |
equals(Object o) |
Deque<String> |
getComments() |
long |
getId() |
Collection<String> |
getIngredientNames() |
List<Cocktail.Ingredient> |
getIngredients() |
String |
getInstructions() |
String |
getInstructionsAsHtml() |
String |
getName() |
String |
getPhotoUrl() |
String |
getPrettyPrice()
Price in dollars
|
int |
getPriceInCents() |
String |
getRecipeUrl() |
int |
hashCode() |
void |
setComments(Deque<String> comments) |
void |
setId(long id) |
void |
setIngredients(List<Cocktail.Ingredient> ingredients) |
void |
setInstructions(String instructions) |
void |
setName(String name) |
void |
setPhotoUrl(String photoUrl) |
void |
setPriceInCents(int priceInCents) |
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 |
withPriceInCents(int priceInCents) |
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<Cocktail.Ingredient> getIngredients()
public void setIngredients(List<Cocktail.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)
public int getPriceInCents()
public String getPrettyPrice()
public void setPriceInCents(int priceInCents)
public Cocktail withPriceInCents(int priceInCents)
Copyright © 2013. All Rights Reserved.