# Uses of Class
org.apache.commons.lang3.Range

Packages that use Range
Package
Description
org.apache.commons.lang3
Provides highly reusable utility methods, chiefly concerned with adding value to the `java.lang` classes.

- ## Uses of Range in org.apache.commons.lang3

  Subclasses of Range in org.apache.commons.lang3
  Modifier and Type
  Class
  Description
  `final class`
  `DoubleRange`
  Specializes `NumberRange` for `Double`s.
  `final class`
  `IntegerRange`
  Specializes `NumberRange` for `Integer`s.
  `final class`
  `LongRange`
  Specializes `NumberRange` for `Long`s.
  `class`
  `NumberRange<N extends Number>`
  Specializes `Range` for `Number`s.
  Methods in org.apache.commons.lang3 that return Range
  Modifier and Type
  Method
  Description
  `static <T extends Comparable<? super T>>
  Range<T>`
  Range.`between(T fromInclusive, T toInclusive)`
  Deprecated.
  Use `of(Comparable, Comparable)`.
  `static <T> Range<T>`
  Range.`between(T fromInclusive, T toInclusive, Comparator<T> comparator)`
  Deprecated.
  Use `of(Object, Object, Comparator)`.
  `Range<T>`
  Range.`intersectionWith(Range<T> other)`
  Calculate the intersection of `this` and an overlapping Range.
  `static <T extends Comparable<? super T>>
  Range<T>`
  Range.`is(T element)`
  Creates a range using the specified element as both the minimum and maximum in this range.
  `static <T> Range<T>`
  Range.`is(T element, Comparator<T> comparator)`
  Creates a range using the specified element as both the minimum and maximum in this range.
  `static <T extends Comparable<? super T>>
  Range<T>`
  Range.`of(T fromInclusive, T toInclusive)`
  Creates a range with the specified minimum and maximum values (both inclusive).
  `static <T> Range<T>`
  Range.`of(T fromInclusive, T toInclusive, Comparator<T> comparator)`
  Creates a range with the specified minimum and maximum values (both inclusive).
  Methods in org.apache.commons.lang3 with parameters of type Range
  Modifier and Type
  Method
  Description
  `boolean`
  Range.`containsRange(Range<T> otherRange)`
  Checks whether this range contains all the elements of the specified range.
  `Range<T>`
  Range.`intersectionWith(Range<T> other)`
  Calculate the intersection of `this` and an overlapping Range.
  `boolean`
  Range.`isAfterRange(Range<T> otherRange)`
  Checks whether this range is completely after the specified range.
  `boolean`
  Range.`isBeforeRange(Range<T> otherRange)`
  Checks whether this range is completely before the specified range.
  `boolean`
  Range.`isOverlappedBy(Range<T> otherRange)`
  Tests whether this range is overlapped by the specified range.