Code example for Collection

Methods: containsAll

0
      } 
    } 
  } 
 
  private static <T> boolean sameContents(Collection<T> c1, Collection<T> c2) {
    return c1.containsAll(c2) && c2.containsAll(c1);
  } 
 
  private static void printResult(PointerKey pk, Collection<InstanceKey> result) {
    if (VERBOSE) {
      System.err.println("points-to for " + pk);
      if (result.isEmpty()) {
        System.err.println("  EMPTY!");
      } 
      for (Iterator<InstanceKey> it = result.iterator(); it.hasNext();) {
        System.err.println("  " + it.next());
      } 
    } 
  } 
 
Experience pair programming with AI  Get Codota for Java