public class Product
extends Object
This class is to be used as a container for Product data.
Each file within the "ShipmentFolder" will have enough information to create
a Product.
-
Field Summary
Fields
(package private) int
(package private) double
(package private) int
(package private) int
(package private) double
-
Constructor Summary
Constructors
Default constructor for Product, all values are set to be invalid.
Product(String name,
int sku,
double price,
double weight,
int destination,
int quantity)
Overloaded constructor that requires all values for construction.
-
Method Summary
int
Gets the destination int.
Returns String format of a Product object.
-
Field Details
-
-
-
-
-
destination
int destination
-
-
Constructor Details
-
Product
public Product()
Default constructor for Product, all values are set to be invalid.
-
Product
public Product(String name,
int sku,
double price,
double weight,
int destination,
int quantity)
Overloaded constructor that requires all values for construction.
- Parameters:
name -
sku -
price -
weight -
destination -
quantity -
-
Method Details
-
getName
Gets the name String.
- Returns:
-
getDestination
public int getDestination()
Gets the destination int.
- Returns:
-
toString
Returns String format of a Product object.
- Overrides:
toString in class Object