Example #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.");
 }
Example #2
0
 public final void setSink(ObjectSink<T> sink) {
   Checks.checkNotNull(sink);
   this.sink = sink;
 }
Example #3
0
 public final void setComparator(Comparator<T> comparator) {
   Checks.checkNotNull(comparator);
   this.comparator = comparator;
 }
Example #4
0
 public final void setSourceB(ObjectSource<T> sourceB) {
   Checks.checkNotNull(sourceB);
   this.sourceB = sourceB;
 }
Example #5
0
 public final void setSourceA(ObjectSource<T> sourceA) {
   Checks.checkNotNull(sourceA);
   this.sourceA = sourceA;
 }