1 8 9 package collections.ship.factory; 10 11 import com.sleepycat.bind.tuple.MarshalledTupleEntry; 12 import com.sleepycat.bind.tuple.TupleInput; 13 import com.sleepycat.bind.tuple.TupleOutput; 14 15 24 public class PartKey implements MarshalledTupleEntry { 25 26 private String number; 27 28 public PartKey(String number) { 29 30 this.number = number; 31 } 32 33 public final String getNumber() { 34 35 return number; 36 } 37 38 public String toString() { 39 40 return "[PartKey: number=" + number + ']'; 41 } 42 43 45 public PartKey() { 46 47 } 50 51 public void marshalEntry(TupleOutput keyOutput) { 52 53 keyOutput.writeString(this.number); 54 } 55 56 public void unmarshalEntry(TupleInput keyInput) { 57 58 this.number = keyInput.readString(); 59 } 60 } 61 | Popular Tags |