public class Ingredient
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
amount
Amount of ingredient
|
java.lang.String |
measure
How to measure ingredient
|
java.lang.String |
name
Name of ingredient
|
long |
recipeId
Recipe Id
|
int |
uid
Id of ingredient
|
Constructor and Description |
---|
Ingredient()
Constructor Ingredient without any parameters
|
Ingredient(java.lang.String name,
double amount,
java.lang.String measure)
Constructor Ingredient with parameters
|
Ingredient(java.lang.String name,
double amount,
java.lang.String measure,
int recipeId)
Constructor Ingredient will parameters
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Compares Ingredients without taking in account uid
|
java.lang.String |
toString() |
public int uid
public java.lang.String name
public double amount
public java.lang.String measure
public long recipeId
public Ingredient()
public Ingredient(java.lang.String name, double amount, java.lang.String measure)
name
- name of ingredientamount
- amount of ingredientmeasure
- by which measurement methodpublic Ingredient(java.lang.String name, double amount, java.lang.String measure, int recipeId)
name
- name of ingredientamount
- amount of ingredientmeasure
- by which measurement methodrecipeId
- id of recipe ingredient belongs topublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Object to compare with