Class Ingredient
java.lang.Object
|
+--Ingredient
- public class Ingredient
- extends java.lang.Object
An Ingredient just has a silly no-args
constructor for now, and the types of the instance
variables are all of type String for now.
Perhaps later we would wish to constrain the types
of the variables better.
- Version:
- 0.1, 19 SEP 2003
- Author:
- Prof. Jeffrey Sonstein
|
Field Summary |
private java.lang.String |
amount
|
private java.lang.String |
comment
|
private java.lang.String |
itemName
|
private java.lang.String |
measure
|
|
Constructor Summary |
Ingredient()
The no-args constructor just sets each of the
instance variables to be an empty String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
amount
private java.lang.String amount
measure
private java.lang.String measure
itemName
private java.lang.String itemName
comment
private java.lang.String comment
Ingredient
public Ingredient()
- The no-args constructor just sets each of the
instance variables to be an empty
String.
getAmount
public java.lang.String getAmount()
setAmount
public void setAmount(java.lang.String thisAmount)
getMeasure
public java.lang.String getMeasure()
setMeasure
public void setMeasure(java.lang.String thisMeasure)
getItemName
public java.lang.String getItemName()
setItemName
public void setItemName(java.lang.String thisItemName)
getComment
public java.lang.String getComment()
setComment
public void setComment(java.lang.String thisComment)