1 18 19 20 package sync4j.framework.core; 21 22 31 public final class MapItem 32 implements java.io.Serializable { 33 34 36 private Target target; 37 private Source source; 38 39 41 44 protected MapItem() {} 45 46 55 public MapItem(final Target target, final Source source) { 56 setTarget(target); 57 setSource(source); 58 } 59 60 62 68 public Target getTarget() { 69 return target; 70 } 71 72 79 public void setTarget(Target target) { 80 if (target == null) { 81 throw new IllegalArgumentException ("target cannot be null"); 82 } 83 this.target = target; 84 } 85 86 92 public Source getSource() { 93 return source; 94 } 95 96 103 public void setSource(Source source) { 104 if (source == null) { 105 throw new IllegalArgumentException ("source cannot be null"); 106 } 107 this.source = source; 108 } 109 } 110 | Popular Tags |