class AssembleUtil {

  public static <T extends Comparable<? super T>>boolean containsAll(final T[] a, final T[] b) {
    for (int i = 0, j = 0;;) {
      if (j == b.length)
        return true;

      if (i == a.length)
        return false;

      final int comparison = a[i].compareTo(b[j]);
      if (comparison > 0)
        return false;

      ++i;
      if (comparison == 0)
        ++j;
    }
  }

  private  AssembleUtil();

}