Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
|
Modifier and Type | Field and Description |
---|---|
private static ImmutableRangeSet<java.lang.Comparable<?>> |
ImmutableRangeSet.ALL |
private ImmutableRangeSet<C> |
ImmutableRangeSet.complement |
private static ImmutableRangeSet<java.lang.Comparable<?>> |
ImmutableRangeSet.EMPTY |
Modifier and Type | Field and Description |
---|---|
private static java.util.stream.Collector<Range<java.lang.Comparable<?>>,?,ImmutableRangeSet<java.lang.Comparable<?>>> |
CollectCollectors.TO_IMMUTABLE_RANGE_SET |
Modifier and Type | Method and Description |
---|---|
(package private) static <C extends java.lang.Comparable> |
ImmutableRangeSet.all()
Returns an immutable range set containing the single range
Range.all() . |
ImmutableRangeSet<C> |
ImmutableRangeSet.Builder.build()
Returns an
ImmutableRangeSet containing the ranges added to this builder. |
ImmutableRangeSet<C> |
ImmutableRangeSet.complement() |
static <C extends java.lang.Comparable<?>> |
ImmutableRangeSet.copyOf(java.lang.Iterable<Range<C>> ranges)
Returns an
ImmutableRangeSet containing each of the specified disjoint ranges. |
static <C extends java.lang.Comparable> |
ImmutableRangeSet.copyOf(RangeSet<C> rangeSet)
Returns an immutable copy of the specified
RangeSet . |
ImmutableRangeSet<C> |
ImmutableRangeSet.difference(RangeSet<C> other)
Returns a new range set consisting of the difference of this range set and
other . |
ImmutableRangeSet<C> |
ImmutableRangeSet.intersection(RangeSet<C> other)
Returns a new range set consisting of the intersection of this range set and
other . |
static <C extends java.lang.Comparable> |
ImmutableRangeSet.of()
Returns an empty immutable range set.
|
static <C extends java.lang.Comparable> |
ImmutableRangeSet.of(Range<C> range)
Returns an immutable range set containing the specified single range.
|
ImmutableRangeSet<C> |
ImmutableRangeSet.subRangeSet(Range<C> range)
Returns a view of the intersection of this range set with the given range.
|
ImmutableRangeSet<C> |
ImmutableRangeSet.union(RangeSet<C> other)
Returns a new range set consisting of the union of this range set and
other . |
static <C extends java.lang.Comparable<?>> |
ImmutableRangeSet.unionOf(java.lang.Iterable<Range<C>> ranges)
Returns an
ImmutableRangeSet representing the union of the specified ranges. |
Modifier and Type | Method and Description |
---|---|
static <E extends java.lang.Comparable<? super E>> |
ImmutableRangeSet.toImmutableRangeSet()
Returns a
Collector that accumulates the input elements into a new ImmutableRangeSet . |
(package private) static <E extends java.lang.Comparable<? super E>> |
CollectCollectors.toImmutableRangeSet() |
Constructor and Description |
---|
ImmutableRangeSet(ImmutableList<Range<C>> ranges,
ImmutableRangeSet<C> complement) |