/guava/guava/src/com/google/common/collect/Range.java
return closed( set.last( ) , set.last( ) ) ;
return closed ( set.first ( ) , set.last ( ) ) ;
public static <C extends Comparable<?>> Range<C> encloseAll(Iterable<C> values) { checkNotNull(values); if (values instanceof SortedSet) { SortedSet<C> set = (SortedSet<C>) values; Comparator<?> comparator = set.comparator(); if (Ordering.<C>natural().equals(comparator) || comparator == null) { <extra_id_0> } } Iterator<C> valueIterator = values.iterator(); C min = checkNotNull(valueIterator.next()); C max = min; while (valueIterator.hasNext()) {