cafe.main
Class ExportProduct
java.lang.Object
cafe.main.Product
cafe.main.ExportProduct
public class ExportProduct
- extends Product
Constructor Summary |
ExportProduct(int id,
java.lang.String[] name,
java.lang.String[] group,
double useamount,
javax.swing.ImageIcon productpic)
Constructs a new ExportProduct with given parameters. |
Method Summary |
boolean |
equals(java.lang.Object obj)
Overrides equals method. |
double |
getUseAmount()
Returns the product's "price". |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExportProduct
public ExportProduct(int id,
java.lang.String[] name,
java.lang.String[] group,
double useamount,
javax.swing.ImageIcon productpic)
- Constructs a new ExportProduct with given parameters.
- Parameters:
id
- This product's id number (from database).name
- Product name in different languages.group
- Product's group's name in different languages.useamount
- Product's "price".productpic
- Image/icon for this product.
getUseAmount
public double getUseAmount()
- Returns the product's "price".
- Returns:
- The product's "price".
equals
public boolean equals(java.lang.Object obj)
- Overrides equals method. Compares this ExportProduct to another by
comparing id numbers.
- Overrides:
equals
in class java.lang.Object
- Returns:
true
if id numbers match, false
otherwise.