/guava/android/guava/src/com/google/common/collect/Ordering.java
} else { return Collections.unmodifiableList( list) ;
return Collections.unmodifiableList ( list ) ; } else {
ArrayList<E> list = Lists.newArrayList(iterator); Collections.sort(list, this); if (list.size() > k) { list.subList(k, list.size()).clear(); } list.trimToSize(); <extra_id_0> TopKSelector<E> selector = TopKSelector.least(k, this); selector.offerAll(iterator); return selector.topK(); } } public <E extends T> List<E> greatestOf(Iterable<E> iterable, int k) {