00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 package collections.ship.tuple;
00011
00022 public class Shipment {
00023
00024 private String partNumber;
00025 private String supplierNumber;
00026 private int quantity;
00027
00028 public Shipment(String partNumber, String supplierNumber, int quantity) {
00029
00030 this.partNumber = partNumber;
00031 this.supplierNumber = supplierNumber;
00032 this.quantity = quantity;
00033 }
00034
00035 public final String getPartNumber() {
00036
00037 return partNumber;
00038 }
00039
00040 public final String getSupplierNumber() {
00041
00042 return supplierNumber;
00043 }
00044
00045 public final int getQuantity() {
00046
00047 return quantity;
00048 }
00049
00050 public String toString() {
00051
00052 return "[Shipment: part=" + partNumber +
00053 " supplier=" + supplierNumber +
00054 " quantity=" + quantity + ']';
00055 }
00056 }