Package | Description |
---|---|
com.norconex.commons.lang |
Miscellaneous classes.
|
Modifier and Type | Method and Description |
---|---|
static <T extends Comparable<T>> |
CircularRange.between(T fromInclusive,
T toInclusive)
Obtains a range with the specified minimum and maximum values also
serving as circular start and end (all inclusive).
|
static <T> CircularRange<T> |
CircularRange.between(T fromInclusive,
T toInclusive,
Comparator<T> comparator)
Obtains a range with the specified minimum and maximum values also
serving as circular start and end (all inclusive).
|
static <T extends Comparable<T>> |
CircularRange.between(T circleStartInclusive,
T circleEndInclusive,
T rangeFromInclusive,
T rangeToInclusive)
Obtains a range with the specified minimum and maximum values
and circular start and end values (all inclusive).
|
static <T> CircularRange<T> |
CircularRange.between(T circleStartInclusive,
T circleEndInclusive,
T rangeFromInclusive,
T rangeToInclusive,
Comparator<T> comparator)
Obtains a range with the specified minimum and maximum values
and circular start and end values (all inclusive).
|
static <T extends Comparable<T>> |
CircularRange.is(T element)
Obtains a range using the specified element as both the minimum
and maximum in this range and as both circular start and end.
|
static <T> CircularRange<T> |
CircularRange.is(T element,
Comparator<T> comparator)
Obtains a range using the specified element as both the minimum
and maximum in this range and as both circular start and end.
|
CircularRange<T> |
CircularRange.withCircularBoundaries(T circleStartInclusive,
T circleEndInclusive)
Obtains a new range with the specified circular start and end
values (both inclusive).
|
CircularRange<T> |
CircularRange.withRange(T rangeFromInclusive,
T rangeToInclusive)
Obtains a new range with the specified minimum and maximum range
values (both inclusive).
|
Modifier and Type | Method and Description |
---|---|
boolean |
CircularRange.containsRange(CircularRange<T> otherRange)
Checks whether this range contains all the elements of the
specified range.
|
boolean |
CircularRange.isOverlappedBy(CircularRange<T> otherRange)
Checks whether this range is overlapped by the specified range.
|
Copyright © 2008–2021 Norconex Inc.. All rights reserved.