|
|
@@ -13,6 +13,10 @@ public class Ingredient extends Observable.Instance {
|
|
|
String preparation = "";
|
|
|
Amount amount;
|
|
|
|
|
|
+ boolean hasPreparation() {
|
|
|
+ return preparation != null && !preparation.isEmpty();
|
|
|
+ }
|
|
|
+
|
|
|
Ingredient plus(final Ingredient rhs) {
|
|
|
if (!name.equals(rhs.name)) {
|
|
|
throw new IllegalArgumentException("Combining ingredients of differing types");
|