Class Packet
java.lang.Object
data.Packet
The Packet class represents a package with specific dimensions (length and height) and weight
-
Constructor Summary
ConstructorsConstructorDescriptionPacket
(int length, int width, int height, int weight) Constructor for the Packet class -
Method Summary
-
Constructor Details
-
Packet
public Packet(int length, int width, int height, int weight) Constructor for the Packet class- Parameters:
length
- the length of the package in millimeterswidth
- the width of the package in millimetersheight
- the height of the package in millimetersweight
- the weight of the package in grams
-
-
Method Details
-
getLength
public int getLength()Retrieves the length of the package- Returns:
- the length of the package in millimeters
-
getWidth
public int getWidth()Retrieves the width of the package- Returns:
- the width of the package in millimeters
-
getHeight
public int getHeight()Retrieves the height of the package- Returns:
- the height of the package in millimeters
-
getWeight
public int getWeight()Retrieves the weight of the package- Returns:
- the weight of the package in grams
-
getGirth
public int getGirth()Retrieves the girth of the package- Returns:
- the girth of the package in millimeters
-