Uses of Class
cloud.opencode.base.core.Range
Packages that use Range
Package
Description
Core utilities and foundational classes for the OpenCode Base library.
-
Uses of Range in cloud.opencode.base.core
Methods in cloud.opencode.base.core that return RangeModifier and TypeMethodDescriptionstatic <C extends Comparable<? super C>>
Range<C> Range.all()Creates a range containing all values (-∞, +∞).static <C extends Comparable<? super C>>
Range<C> Range.atLeast(C lower) Creates a range with no upper bound [lower, +∞).static <C extends Comparable<? super C>>
Range<C> Range.atMost(C upper) Creates a range with no lower bound (-∞, upper].Returns a canonical form of this range using the given domain.static <C extends Comparable<? super C>>
Range<C> Range.closed(C lower, C upper) Creates a closed range [lower, upper].static <C extends Comparable<? super C>>
Range<C> Range.closedOpen(C lower, C upper) Creates a closed-open range [lower, upper).static <C extends Comparable<? super C>>
Range<C> Range.encloseAll(C... values) Creates the minimal range enclosing all given values.static <C extends Comparable<? super C>>
Range<C> Range.encloseAll(Iterable<C> values) Creates the minimal range enclosing all values in the iterable.static <C extends Comparable<? super C>>
Range<C> Range.greaterThan(C lower) Creates a range with no upper bound (lower, +∞).Range.intersection(Range<C> other) Returns the intersection of this range with another.static <C extends Comparable<? super C>>
Range<C> Range.lessThan(C upper) Creates a range with no lower bound (-∞, upper).static <C extends Comparable<? super C>>
Range<C> Range.open(C lower, C upper) Creates an open range (lower, upper).static <C extends Comparable<? super C>>
Range<C> Range.openClosed(C lower, C upper) Creates an open-closed range (lower, upper].static <C extends Comparable<? super C>>
Range<C> Range.singleton(C value) Creates a singleton range [value, value].Returns the minimal range enclosing both this range and another.Methods in cloud.opencode.base.core that return types with arguments of type RangeModifier and TypeMethodDescriptionReturns the gap between this range and another, if any.Methods in cloud.opencode.base.core with parameters of type RangeModifier and TypeMethodDescriptionbooleanReturns true if this range encloses another range.Returns the gap between this range and another, if any.Range.intersection(Range<C> other) Returns the intersection of this range with another.booleanRange.isConnected(Range<C> other) Returns true if this range is connected to another range.Returns the minimal range enclosing both this range and another.