Uses of Class
cloud.opencode.base.collections.Range
Packages that use Range
Package
Description
Immutable Collections Package
不可变集合包
Specialized Collections Package - Specialized Collection Types
专用集合包 - 专用集合类型
-
Uses of Range in cloud.opencode.base.collections
Methods in cloud.opencode.base.collections that return RangeModifier and TypeMethodDescriptionstatic <C extends Comparable<? super C>>
Range<C> Range.all()Create a range containing all values (-∞, +∞).static <C extends Comparable<? super C>>
Range<C> Range.atLeast(C lower) Create a range with no upper bound [lower, +∞).static <C extends Comparable<? super C>>
Range<C> Range.atMost(C upper) Create a range with no lower bound (-∞, upper].static <C extends Comparable<? super C>>
Range<C> Range.closed(C lower, C upper) Create a closed range [lower, upper].static <C extends Comparable<? super C>>
Range<C> Range.closedOpen(C lower, C upper) Create a closed-open range [lower, upper).static <C extends Comparable<? super C>>
Range<C> Range.create(Range.BoundType lowerBoundType, C lower, Range.BoundType upperBoundType, C upper) Create a range with explicit bound types.static <C extends Comparable<? super C>>
Range<C> Range.greaterThan(C lower) Create a range with no upper bound (lower, +∞).Range.intersection(Range<C> other) Return the intersection with another range.static <C extends Comparable<? super C>>
Range<C> Range.lessThan(C upper) Create a range with no lower bound (-∞, upper).static <C extends Comparable<? super C>>
Range<C> Range.open(C lower, C upper) Create an open range (lower, upper).static <C extends Comparable<? super C>>
Range<C> Range.openClosed(C lower, C upper) Create an open-closed range (lower, upper].static <C extends Comparable<? super C>>
Range<C> Range.singleton(C value) Create a singleton range [value, value].Return the span (smallest range enclosing both).Methods in cloud.opencode.base.collections with parameters of type RangeModifier and TypeMethodDescriptionbooleanCheck if this range encloses another range.Range.intersection(Range<C> other) Return the intersection with another range.booleanRange.isConnected(Range<C> other) Check if this range is connected to another (can form contiguous range).Return the span (smallest range enclosing both). -
Uses of Range in cloud.opencode.base.collections.immutable
Methods in cloud.opencode.base.collections.immutable that return RangeModifier and TypeMethodDescriptionImmutableRangeSet.rangeContaining(C value) ImmutableRangeMap.span()ImmutableRangeSet.span()Methods in cloud.opencode.base.collections.immutable that return types with arguments of type RangeModifier and TypeMethodDescriptionImmutableRangeMap.asDescendingMapOfRanges()ImmutableRangeSet.asDescendingSetOfRanges()ImmutableRangeMap.asMapOfRanges()ImmutableRangeSet.asRanges()Methods in cloud.opencode.base.collections.immutable with parameters of type RangeModifier and TypeMethodDescriptionvoidNot supported.Add a range to the builder.booleanbooleanImmutableRangeSet.intersects(Range<C> otherRange) static <K extends Comparable<? super K>, V>
ImmutableRangeMap<K, V> Create an immutable range map with a single range-value mapping.static <C extends Comparable<? super C>>
ImmutableRangeSet<C> Create an immutable range set containing a single range.Put a range-value mapping into the builder.voidNot supported.voidImmutableRangeMap.putCoalescing(Range<K> range, V value) Not supported.voidNot supported.voidNot supported.ImmutableRangeMap.subRangeMap(Range<K> range) ImmutableRangeSet.subRangeSet(Range<C> view) Method parameters in cloud.opencode.base.collections.immutable with type arguments of type RangeModifier and TypeMethodDescriptionstatic <C extends Comparable<? super C>>
ImmutableRangeSet<C> Create an immutable range set by copying from an iterable of ranges. -
Uses of Range in cloud.opencode.base.collections.specialized
Methods in cloud.opencode.base.collections.specialized that return RangeModifier and TypeMethodDescriptionRangeSet.rangeContaining(C value) Return the range containing the value, or null.TreeRangeSet.rangeContaining(C value) RangeMap.span()Return the minimal range that encloses all ranges in this map.RangeSet.span()Return the minimal range that encloses all ranges.TreeRangeMap.span()TreeRangeSet.span()Methods in cloud.opencode.base.collections.specialized that return types with arguments of type RangeModifier and TypeMethodDescriptionRangeMap.asDescendingMapOfRanges()Return all range-value mappings in descending order.TreeRangeMap.asDescendingMapOfRanges()RangeSet.asDescendingSetOfRanges()Return all ranges as a descending set.TreeRangeSet.asDescendingSetOfRanges()RangeMap.asMapOfRanges()Return all range-value mappings as a map.TreeRangeMap.asMapOfRanges()RangeSet.asRanges()Return all ranges as a set.TreeRangeSet.asRanges()Get the entry (range and value) containing the key.Methods in cloud.opencode.base.collections.specialized with parameters of type RangeModifier and TypeMethodDescriptionvoidAdd a range to this set.voidbooleanCheck if this range set encloses the given range.booleanbooleanRangeSet.intersects(Range<C> otherRange) Check if this range set intersects the given range.booleanTreeRangeSet.intersects(Range<C> otherRange) voidAssociate a range with a value.voidvoidRangeMap.putCoalescing(Range<K> range, V value) Associate a range with a value, coalescing with adjacent ranges with the same value.voidTreeRangeMap.putCoalescing(Range<K> range, V value) voidRemove a range from this map.voidRemove a range from this set.voidvoidRangeMap.subRangeMap(Range<K> range) Return a view of the portion of this map within the given range.TreeRangeMap.subRangeMap(Range<K> range) RangeSet.subRangeSet(Range<C> view) Return a sub range set within the given range.TreeRangeSet.subRangeSet(Range<C> view) Method parameters in cloud.opencode.base.collections.specialized with type arguments of type RangeModifier and TypeMethodDescriptionstatic <C extends Comparable<? super C>>
TreeRangeSet<C> Create a TreeRangeSet with the given ranges.