public class Part extends Object
Constructor and Description |
---|
Part()
Create a new part.
|
Part(Product product,
double quantity)
Create a new product.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Test if an object is equal to this object.
|
Product |
getProduct()
Get the product.
|
double |
getQuantity()
Get the quantity.
|
int |
hashCode()
Get the hash code.
|
void |
setProduct(Product product)
Set the product.
|
void |
setQuantity(double quantity)
Set the quantity.
|
String |
toString()
Get the string representation.
|
public Part()
public Part(Product product, double quantity)
public Product getProduct()
public void setProduct(Product product)
product
- The product to set.public double getQuantity()
public void setQuantity(double quantity)
quantity
- The quantity to set.public int hashCode()
public boolean equals(Object obj)
Copyright © 2012. All Rights Reserved.