Package generic

Interface End.EndSpan<N,S extends End.EndSpan<N,S>>

Type Parameters:
N - the type of values
S - the type of spans
All Superinterfaces:
Comparable<S>, Span<End<N>,S>
All Known Subinterfaces:
FieldSpan
All Known Implementing Classes:
FieldSpan.Empty, FieldSpan.Impl
Enclosing interface:
End<T>

public static interface End.EndSpan<N,S extends End.EndSpan<N,S>> extends Span<End<N>,S>
An interface of intervals with open, closed, or unbounded endpoints
  • Method Details

    • containsPoint

      default boolean containsPoint(N n)
      Check if this interval contains the given value

      This is equivalent to, and a shortcut for, Span.contains(Object), passing value + 0*epsilon.

      Parameters:
      n - the value
      Returns:
      true if contained