/guava/guava/src/com/google/common/collect/Iterables.java
Collection<? extends T> collection = castOrCopyToCollection( iterable) ;Collection<?> collection2 = ( Collection<?>) iterable2;
Collection<?> collection2 = ( Collection<?> ) iterable2;
} return null; } public static boolean elementsEqual(Iterable<?> iterable1, Iterable<?> iterable2) { if (iterable1 instanceof Collection && iterable2 instanceof Collection) { Collection<?> collection1 = (Collection<?>) iterable1; <extra_id_0> if (collection1.size() != collection2.size()) { return false; } } return Iterators.elementsEqual(iterable1.iterator(), iterable2.iterator()); }