/guava/android/guava/src/com/google/common/collect/Iterators.java
} return count;
return count; }
} public static int frequency(Iterator<?> iterator, @CheckForNull Object element) { int count = 0; while (contains(iterator, element)) { count++; } <extra_id_0> public static <T extends @Nullable Object> Iterator<T> cycle(Iterable<T> iterable) { checkNotNull(iterable); return new Iterator<T>() { Iterator<T> iterator = emptyModifiableIterator(); @Override public boolean hasNext() {