Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
|
Modifier and Type | Method and Description |
---|---|
ImmutableRangeSet<C> |
ImmutableRangeSet.Builder.build()
Returns an
ImmutableRangeSet containing the ranges added to this builder. |
ImmutableRangeSet<C> |
ImmutableRangeSet.complement() |
static <C extends Comparable<?>> |
ImmutableRangeSet.copyOf(Iterable<Range<C>> ranges)
Returns an
ImmutableRangeSet containing each of the specified disjoint ranges. |
static <C extends 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 Comparable> |
ImmutableRangeSet.of()
Returns an empty immutable range set.
|
static <C extends 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 Comparable<?>> |
ImmutableRangeSet.unionOf(Iterable<Range<C>> ranges)
Returns an
ImmutableRangeSet representing the union of the specified ranges. |
Copyright © 2010–2017. All rights reserved.