Constructor and Description |
---|
Step() |
Step(long recipeId,
@NotNull String instructions,
int recipeOrder) |
Modifier and Type | Method and Description |
---|---|
@NotNull String |
getInstructions() |
long |
getRecipeId() |
int |
getRecipeOrder() |
long |
getStepId() |
void |
setInstructions(@NotNull String instructions) |
void |
setRecipeId(long recipeId) |
void |
setRecipeOrder(int recipeOrder) |
void |
setStepId(long stepId) |
String |
toString() |
public long getStepId()
public void setStepId(long stepId)
stepId
- is generated when a Step is inserted into the database.public long getRecipeId()
public void setRecipeId(long recipeId)
recipeId
- is received from the parent Recipe.@NotNull public @NotNull String getInstructions()
public void setInstructions(@NotNull @NotNull String instructions)
instructions
- is set by the user in the EditingFragment.public int getRecipeOrder()
public void setRecipeOrder(int recipeOrder)
recipeOrder
- determined by the Step's position in the EditingFragment.