Class LongRange

java.lang.Object
org.apache.commons.jexl3.internal.LongRange
All Implemented Interfaces:
Iterable<Long>, Collection<Long>
Direct Known Subclasses:
LongRange.Ascending, LongRange.Descending

public abstract class LongRange extends Object implements Collection<Long>
A range of longs.

Behaves as a readonly collection of longs.

  • Field Details

    • min

      protected final long min
      The lower boundary.
    • max

      protected final long max
      The upper boundary.
  • Constructor Details

    • LongRange

      protected LongRange(long from, long to)
      Creates a new range.
      Parameters:
      from - the lower inclusive boundary
      to - the higher inclusive boundary
  • Method Details