| 程序包 | 说明 |
|---|---|
| net.hasor.cobble.ref |
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
RandomRatio.Boundary<V>
拥有上下界的一个范围
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <T extends Comparable<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,
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 of
this and an overlapping Range. |
static <T extends Comparable<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,
Comparator<T> comparator)
Obtains a range using the specified element as both the minimum
and maximum in this range.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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)
Checks whether this range is overlapped by the specified range.
|
Copyright © 2022–2023. All rights reserved.