Interface Range.Bound<C>
- Type Parameters:
C- the type of the values
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
Range.Bound.Closed, Range.Bound.Open, Range.Bound.Unbounded
- Enclosing class:
Range<C extends Comparable<? super C>>
public static sealed interface Range.Bound<C>
extends Serializable
permits Range.Bound.Closed<C>, Range.Bound.Open<C>, Range.Bound.Unbounded<C>
A bound of a range: closed, open, or absent.
- Since:
- 0.1.2
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA bound that includes its endpoint.static final recordA bound that excludes its endpoint.static final recordThe absence of a bound: the range extends forever on that side.