Package ca.derekcormier.recipe
Class Recipe
- java.lang.Object
-
- ca.derekcormier.recipe.Ingredient
-
- ca.derekcormier.recipe.Recipe
-
public class Recipe extends Ingredient
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classRecipe.Segment
-
Constructor Summary
Constructors Modifier Constructor Description protectedRecipe()protectedRecipe(Ingredient... ingredients)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Recipecontext(KeyedIngredient contextIngredient, Ingredient... ingredients)static Recipecontext(String context, Ingredient... ingredients)StringgetContext()List<Ingredient>getIngredients()static Recipeprepare(Ingredient... ingredients)protected List<Recipe.Segment>segment()-
Methods inherited from class ca.derekcormier.recipe.Ingredient
getDomain, getIngredientType, getProperties, getProperty, getProperty, hasProperty, setCompoundOptional, setOptional, setProperty, setRequired
-
-
-
-
Constructor Detail
-
Recipe
protected Recipe()
-
Recipe
protected Recipe(Ingredient... ingredients)
-
-
Method Detail
-
prepare
public static Recipe prepare(Ingredient... ingredients)
-
context
public static Recipe context(String context, Ingredient... ingredients)
-
context
public static Recipe context(KeyedIngredient contextIngredient, Ingredient... ingredients)
-
getIngredients
public List<Ingredient> getIngredients()
-
getContext
public String getContext()
-
segment
protected List<Recipe.Segment> segment()
-
-