Uses of Class
com.google.common.collect.ImmutableRangeSet
Packages that use ImmutableRangeSet
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of ImmutableRangeSet in com.google.common.collect
Methods in com.google.common.collect that return ImmutableRangeSetModifier and TypeMethodDescriptionImmutableRangeSet.Builder.build()Returns anImmutableRangeSetcontaining the ranges added to this builder.ImmutableRangeSet.complement()static <C extends Comparable>
ImmutableRangeSet<C> Returns an immutable copy of the specifiedRangeSet.static <C extends Comparable<?>>
ImmutableRangeSet<C> Returns anImmutableRangeSetcontaining each of the specified disjoint ranges.ImmutableRangeSet.difference(RangeSet<C> other) Returns a new range set consisting of the difference of this range set andother.ImmutableRangeSet.intersection(RangeSet<C> other) Returns a new range set consisting of the intersection of this range set andother.static <C extends Comparable>
ImmutableRangeSet<C> ImmutableRangeSet.of()Returns an empty immutable range set.static <C extends Comparable>
ImmutableRangeSet<C> Returns an immutable range set containing the specified single range.ImmutableRangeSet.subRangeSet(Range<C> range) Returns a view of the intersection of this range set with the given range.Returns a new range set consisting of the union of this range set andother.static <C extends Comparable<?>>
ImmutableRangeSet<C> Returns anImmutableRangeSetrepresenting the union of the specified ranges.Methods in com.google.common.collect that return types with arguments of type ImmutableRangeSetModifier and TypeMethodDescriptionstatic <E extends Comparable<? super E>>
Collector<Range<E>, ?, ImmutableRangeSet<E>> ImmutableRangeSet.toImmutableRangeSet()Returns aCollectorthat accumulates the input elements into a newImmutableRangeSet.