示例#1
0
 @Override
 protected void initialiseTask() throws Exception {
   Checks.checkNotNull(getSourceA());
   Checks.checkNotNull(getSourceB());
   Checks.checkNotNull(getSink());
   Checks.checkNotNull(getComparator());
   if (getSourceA().equals(getSourceB()))
     throw new IllegalStateException("Sources A and B are the same.");
   if (getSourceA().equals(getSink()))
     throw new IllegalStateException("Source A is the same as the sink.");
   if (getSourceB().equals(getSink()))
     throw new IllegalStateException("Source B is the same as the sink.");
 }
示例#2
0
 public final void setSink(ObjectSink<T> sink) {
   Checks.checkNotNull(sink);
   this.sink = sink;
 }
示例#3
0
 public final void setComparator(Comparator<T> comparator) {
   Checks.checkNotNull(comparator);
   this.comparator = comparator;
 }
示例#4
0
 public final void setSourceB(ObjectSource<T> sourceB) {
   Checks.checkNotNull(sourceB);
   this.sourceB = sourceB;
 }
示例#5
0
 public final void setSourceA(ObjectSource<T> sourceA) {
   Checks.checkNotNull(sourceA);
   this.sourceA = sourceA;
 }