| Package | Description |
|---|---|
| com.landawn.abacus.util |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable<? super T>> |
Range.closed(T min,
T max) |
static <T extends Comparable<? super T>> |
Range.closedOpen(T min,
T max) |
static <T extends Comparable<? super T>> |
Range.just(T element)
Obtains a range using the specified element as both the minimum and maximum in this range.
|
static <T extends Comparable<? super T>> |
Range.open(T min,
T max) |
static <T extends Comparable<? super T>> |
Range.openClosed(T min,
T max) |
Range<T> |
Range.span(Range<T> other)
Copied from Guava under Apache License v2.0
Returns the minimal range that encloses both this range and other. |
| Modifier and Type | Method and Description |
|---|---|
u.Optional<Range<T>> |
Range.intersection(Range<T> other)
Calculate the intersection of
this and an overlapping Range. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Range.containsRange(Range<T> other)
Checks whether this range contains all the elements of the specified range.
|
u.Optional<Range<T>> |
Range.intersection(Range<T> other)
Calculate the intersection of
this and an overlapping Range. |
boolean |
Range.isAfterRange(Range<T> other)
Checks whether this range is completely after the specified range.
|
boolean |
Range.isBeforeRange(Range<T> other)
Checks whether this range is completely before the specified range.
|
boolean |
Range.isOverlappedBy(Range<T> other)
Checks whether this range is overlapped by the specified range.
|
Range<T> |
Range.span(Range<T> other)
Copied from Guava under Apache License v2.0
Returns the minimal range that encloses both this range and other. |
Copyright © 2021. All rights reserved.