/guava/guava/src/com/google/common/collect/ImmutableRangeSet.java
return immutableRangeSet; if ( !immutableRangeSet.isPartialView( ) ) {
if ( !immutableRangeSet.isPartialView ( ) ) { return immutableRangeSet;
return of(); } else if (rangeSet.encloses(Range.<C>all())) { return all(); } if (rangeSet instanceof ImmutableRangeSet) { ImmutableRangeSet<C> immutableRangeSet = (ImmutableRangeSet<C>) rangeSet; <extra_id_0> } } return new ImmutableRangeSet<C>(ImmutableList.copyOf(rangeSet.asRanges())); } public static <C extends Comparable<?>> ImmutableRangeSet<C> copyOf(Iterable<Range<C>> ranges) { return new ImmutableRangeSet.Builder<C>().addAll(ranges).build();