Uses of Class
com.google.common.collect.ImmutableRangeSet
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of ImmutableRangeSet in com.google.common.collect
Modifier and TypeMethodDescriptionImmutableRangeSet.Builder.build()
Returns anImmutableRangeSet
containing 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 anImmutableRangeSet
containing 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 anImmutableRangeSet
representing the union of the specified ranges.Modifier and TypeMethodDescriptionstatic <E extends Comparable<? super E>>
Collector<Range<E>, ?, ImmutableRangeSet<E>> ImmutableRangeSet.toImmutableRangeSet()
Returns aCollector
that accumulates the input elements into a newImmutableRangeSet
.