Returns a range that contains every value of type C.
Returns a range that contains all values greater than or equal to endpoint.
Returns a range that contains all values less than or equal to endpoint.
Returns the canonical form of this range in the given domain.
Range.closed(C lower,
C upper)
Returns a range that contains all values greater than or equal to lower and less than
or equal to upper.
Returns a range that contains all values greater than or equal to lower and strictly
less than upper.
Returns a range from the given endpoint, which may be either inclusive (closed) or exclusive
(open), with no upper bound.
Returns the minimal range that
contains all of the
given values.
Returns the maximal range lying between this range and otherRange, if such a range
exists.
Returns a range that contains all values strictly greater than endpoint.
Returns the maximal range
enclosed by both this range and
connectedRange, if such a range exists.
Returns a range that contains all values strictly less than endpoint.
Range.open(C lower,
C upper)
Returns a range that contains all values strictly greater than lower and strictly less
than upper.
Returns a range that contains all values strictly greater than lower and less than or
equal to upper.
Returns a range, closed on both ends, whose endpoints are the minimum and maximum values
contained in this set.
Returns the minimal range with the given boundary types for which all values in this set are
contained within the range.
Returns a range that contains any value from lower to upper, where each
endpoint may be either inclusive (closed) or exclusive (open).
Returns the unique range from this range set that
contains
value, or
null if this range set does not contain
value.
Returns a range that
contains only the given value.
Returns the minimal range that
encloses both this range and
other.
Returns the minimal range
enclosing the ranges in this
RangeMap.
Returns the minimal range which
encloses all ranges in this
range set.
Returns a range with no lower bound up to the given endpoint, which may be either inclusive
(closed) or exclusive (open).
void
ImmutableRangeSet.Builder.add(Range<C> range)
Add the specified range to this builder.
void
Adds the specified range to this RangeSet (optional operation).
void
Returns a
ContiguousSet containing the same values in the given domain
contained by the range.
boolean
boolean
Returns true if the bounds of other do not extend outside the bounds of this
range.
boolean
Returns
true if there exists a member range in this range set which
encloses the specified range.
boolean
Returns the maximal range lying between this range and otherRange, if such a range
exists.
Returns the maximal range
enclosed by both this range and
connectedRange, if such a range exists.
boolean
boolean
Returns true if there exists a non-empty range enclosed by both a member range in this
range set and the specified range.
boolean
boolean
Returns
true if there exists a (possibly empty) range which is
enclosed by both this range and
other.
final void
ImmutableRangeMap.merge(Range<K> range,
V value,
BiFunction<? super V,? super @Nullable V,? extends @Nullable V> remappingFunction)
void
Merges a value into a part of the map by applying a remapping function.
void
TreeRangeMap.merge(Range<K> range,
V value,
BiFunction<? super V,? super @Nullable V,? extends @Nullable V> remappingFunction)
ImmutableRangeMap.of(Range<K> range,
V value)
Returns an immutable range map mapping a single range to a single value.
ImmutableRangeSet.of(Range<C> range)
Returns an immutable range set containing the specified single range.
ImmutableRangeMap.Builder.put(Range<K> range,
V value)
Associates the specified range with the specified value.
final void
void
Maps a range to a specified value (optional operation).
void
final void
void
Maps a range to a specified value, coalescing this range with any existing ranges with the same
value that are
connected to this range.
void
final void
void
void
Removes all associations from this range map in the specified range (optional operation).
void
Removes the specified range from this RangeSet (optional operation).
void
void
Returns the minimal range that
encloses both this range and
other.
Returns a view of the portion of map whose keys are contained by range.
Returns a view of the part of this range map that intersects with range.
Returns a view of the intersection of this range set with the given range.
Returns a view of the intersection of this RangeSet with the specified range.
Returns a view of the portion of set whose elements are contained by range.
void
Add all of the specified ranges to this builder.
default void
Adds all of the specified ranges to this range set (optional operation).
Returns an ImmutableRangeSet containing each of the specified disjoint ranges.
Returns a TreeRangeSet representing the union of the specified ranges.
default boolean
Returns
true if for each range in
other there exists a member range in this
range set which
encloses it.
void
default void
Removes all of the specified ranges from this range set (optional operation).
Returns a Collector that accumulates the input elements into a new
ImmutableRangeMap.
Returns an ImmutableRangeSet representing the union of the specified ranges.