Class RangeSet.Numeric<E extends Number & Comparable<? super E>>

Type Parameters:
E - the type of range elements.
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Range<E>>, Collection<Range<E>>, SequencedCollection<Range<E>>, SequencedSet<Range<E>>, Set<Range<E>>, SortedSet<Range<E>>, CheckedContainer<Range<E>>
Enclosing class:
RangeSet<E extends Comparable<? super E>>

private static final class RangeSet.Numeric<E extends Number & Comparable<? super E>> extends RangeSet<E>
A RangeSet implementation for NumberRange elements.
See Also:
  • Field Details

  • Constructor Details

    • Numeric

      Numeric(Class<E> elementType, boolean isMinIncluded, boolean isMaxIncluded)
  • Method Details

    • newRange

      protected Range<E> newRange(E lower, E upper)
      Description copied from class: RangeSet
      Returns a new Range object initialized with the given values.
      Overrides:
      newRange in class RangeSet<E extends Number & Comparable<? super E>>
      Parameters:
      lower - the lower value, inclusive.
      upper - the upper value, exclusive.
      Returns:
      the new range for the given values.