@Test public void iteratesOverEmptyCollection() throws Exception { List<String> elements = Collections.emptyList(); ClusterIterator<String> clusterIterator = new ClusterIterator<String>(elements, String.CASE_INSENSITIVE_ORDER); assertThat(clusterIterator.hasNext(), is(false)); }
@Override public boolean hasNext() { return hasNextElement(); }
ClusterIterator implements Iterator<List<T>> { @Override public boolean hasNext() { return hasNextElement(); } }
ClusterIterator implements Iterator<List<T>> { @Override public boolean hasNext() { return hasNextElement(); } @SuppressWarnings("unchecked")  ClusterIterator(List<T> elements, Comparator<T> comparator); }
ClusterIterator implements Iterator<List<T>> { @Override public boolean hasNext() { return hasNextElement(); } @SuppressWarnings("unchecked")  ClusterIterator(List<T> elements, Comparator<T> comparator); @Override boolean hasNext(); @Override List<T> next(); @Override void remove(); }
ClusterIterator implements Iterator<List<T>> { @Override public boolean hasNext() { return hasNextElement(); } @SuppressWarnings("unchecked")  ClusterIterator(List<T> elements, Comparator<T> comparator); @Override boolean hasNext(); @Override List<T> next(); @Override void remove();  }