code: public static void checkForEqualSize(Tuple t0, Tuple t1)
      {
          if (t0.getSize() != t1.getSize())
          {
              throw new IllegalArgumentException(
                  "Sizes do not match: "+t0.getSize()+
                  " and "+t1.getSize());
          }
      }
docs: Checks whether given given {@link Tuple}s have equal
  {@link Tuple#getSize() size}, and throws an
  <code>IllegalArgumentException</code> if not.
  
  @param t0 The first tuple
  @param t1 The second tuple
  @throws IllegalArgumentException If the given tuples
  do not have the same {@link Tuple#getSize() size}