Uses of Class
org.apache.commons.lang3.Range
-
Packages that use Range Package Description org.apache.commons.lang3 Provides highly reusable static utility methods, chiefly concerned with adding value to thejava.lang
classes.org.apache.commons.lang3.time Provides classes and methods to work with dates and durations. -
-
Uses of Range in org.apache.commons.lang3
Methods in org.apache.commons.lang3 that return Range Modifier and Type Method Description static <T extends java.lang.Comparable<T>>
Range<T>Range. between(T fromInclusive, T toInclusive)
Obtains a range with the specified minimum and maximum values (both inclusive).static <T> Range<T>
Range. between(T fromInclusive, T toInclusive, java.util.Comparator<T> comparator)
Obtains a range with the specified minimum and maximum values (both inclusive).Range<T>
Range. intersectionWith(Range<T> other)
Calculate the intersection ofthis
and an overlapping Range.static <T extends java.lang.Comparable<T>>
Range<T>Range. is(T element)
Obtains a range using the specified element as both the minimum and maximum in this range.static <T> Range<T>
Range. is(T element, java.util.Comparator<T> comparator)
Obtains a range using the specified element as both the minimum and maximum in this range.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 ofthis
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)
Checks whether this range is overlapped by the specified range. -
Uses of Range in org.apache.commons.lang3.time
Fields in org.apache.commons.lang3.time declared as Range Modifier and Type Field Description (package private) static Range<java.lang.Long>
DurationUtils. LONG_TO_INT_RANGE
An Integer Range that accepts Longs.
-