Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and
other utilities for working with collections.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
AbstractRangeSet<C extends java.lang.Comparable>
A skeletal implementation of
RangeSet . |
class |
ImmutableRangeSet<C extends java.lang.Comparable>
An efficient immutable implementation of a
RangeSet . |
class |
TreeRangeSet<C extends java.lang.Comparable<?>>
An implementation of
RangeSet backed by a TreeMap . |
private class |
TreeRangeSet.Complement |
private class |
TreeRangeSet.SubRangeSet |
Modifier and Type | Field and Description |
---|---|
private RangeSet<C> |
TreeRangeSet.complement |
private RangeSet<K> |
ImmutableRangeMap.Builder.keyRanges |
private RangeSet<C> |
ImmutableRangeSet.Builder.rangeSet |
Modifier and Type | Method and Description |
---|---|
RangeSet<C> |
TreeRangeSet.complement() |
RangeSet<C> |
TreeRangeSet.Complement.complement() |
RangeSet<C> |
RangeSet.complement()
Returns a view of the complement of this
RangeSet . |
RangeSet<C> |
TreeRangeSet.subRangeSet(Range<C> view) |
RangeSet<C> |
TreeRangeSet.SubRangeSet.subRangeSet(Range<C> view) |
RangeSet<C> |
RangeSet.subRangeSet(Range<C> view)
Returns a view of the intersection of this
RangeSet with the specified range. |
Modifier and Type | Method and Description |
---|---|
void |
RangeSet.addAll(RangeSet<C> other)
Adds all of the ranges from the specified range set to this range set (optional operation).
|
void |
ImmutableRangeSet.addAll(RangeSet<C> other) |
ImmutableRangeSet.Builder<C> |
ImmutableRangeSet.Builder.addAll(RangeSet<C> ranges)
Add all ranges from the specified range set to this builder.
|
void |
AbstractRangeSet.addAll(RangeSet<C> other) |
static <C extends java.lang.Comparable> |
ImmutableRangeSet.copyOf(RangeSet<C> rangeSet)
Returns an immutable copy of the specified
RangeSet . |
static <C extends java.lang.Comparable<?>> |
TreeRangeSet.create(RangeSet<C> rangeSet)
Returns a
TreeRangeSet initialized with the ranges in the specified range set. |
boolean |
RangeSet.enclosesAll(RangeSet<C> other)
Returns
true if for each member range in other there exists a member range in
this range set which encloses it. |
boolean |
AbstractRangeSet.enclosesAll(RangeSet<C> other) |
void |
RangeSet.removeAll(RangeSet<C> other)
Removes all of the ranges from the specified range set from this range set (optional
operation).
|
void |
ImmutableRangeSet.removeAll(RangeSet<C> other) |
void |
AbstractRangeSet.removeAll(RangeSet<C> other) |