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 Classes
    Modifier and Type
    Interface
    Description
    static final record 
    A bound that includes its endpoint.
    static final record 
    A bound that excludes its endpoint.
    static final record 
    The absence of a bound: the range extends forever on that side.