1 8 9 package collections.ship.index; 10 11 import java.io.Serializable ; 12 13 22 public class ShipmentKey implements Serializable { 23 24 private String partNumber; 25 private String supplierNumber; 26 27 public ShipmentKey(String partNumber, String supplierNumber) { 28 29 this.partNumber = partNumber; 30 this.supplierNumber = supplierNumber; 31 } 32 33 public final String getPartNumber() { 34 35 return partNumber; 36 } 37 38 public final String getSupplierNumber() { 39 40 return supplierNumber; 41 } 42 43 public String toString() { 44 45 return "[ShipmentKey: supplier=" + supplierNumber + 46 " part=" + partNumber + ']'; 47 } 48 } 49 | Popular Tags |