created getters for Ingredient
This commit is contained in:
parent
d56b07f2aa
commit
032b86e502
1 changed files with 20 additions and 0 deletions
|
|
@ -72,6 +72,26 @@ public class Ingredient {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public double getProteinPer100g() {
|
||||||
|
return proteinPer100g;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getFatPer100g() {
|
||||||
|
return fatPer100g;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getCarbsPer100g() {
|
||||||
|
return carbsPer100g;
|
||||||
|
}
|
||||||
|
|
||||||
|
public long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (o == null || getClass() != o.getClass()) return false;
|
if (o == null || getClass() != o.getClass()) return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue