Uses of Interface
com.google.common.collect.RangeSet
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of RangeSet in com.google.common.collect
Modifier and TypeClassDescriptionfinal class
ImmutableRangeSet<C extends Comparable>
ARangeSet
whose contents will never change, with many other important properties detailed atImmutableCollection
.class
TreeRangeSet<C extends Comparable<?>>
Modifier and TypeMethodDescriptionRangeSet.complement()
Returns a view of the complement of thisRangeSet
.TreeRangeSet.complement()
RangeSet.subRangeSet
(Range<C> view) Returns a view of the intersection of thisRangeSet
with the specified range.TreeRangeSet.subRangeSet
(Range<C> view) Modifier and TypeMethodDescriptionvoid
Deprecated.Unsupported operation.Add all ranges from the specified range set to this builder.void
Adds all of the ranges from the specified range set to this range set (optional operation).static <C extends Comparable>
ImmutableRangeSet<C> Returns an immutable copy of the specifiedRangeSet
.static <C extends Comparable<?>>
TreeRangeSet<C> Returns aTreeRangeSet
initialized with the ranges in the specified range set.ImmutableRangeSet.difference
(RangeSet<C> other) Returns a new range set consisting of the difference of this range set andother
.boolean
RangeSet.enclosesAll
(RangeSet<C> other) Returnstrue
if for each member range inother
there exists a member range in this range set which encloses it.ImmutableRangeSet.intersection
(RangeSet<C> other) Returns a new range set consisting of the intersection of this range set andother
.void
Deprecated.Unsupported operation.void
Removes all of the ranges from the specified range set from this range set (optional operation).Returns a new range set consisting of the union of this range set andother
.