Package | Description |
---|---|
org.dromara.hutool.core.lang.range |
提供区间和边界封装,主要包括:
Bound : 提供边界的抽象表示,包括边界范围、开闭区间等。 |
Modifier and Type | Method and Description |
---|---|
static <T extends Comparable<? super T>> |
Bound.atLeast(T min)
{x | x >= min} |
static <T extends Comparable<? super T>> |
Bound.atMost(T max)
{x | x <= max} |
Bound<T> |
BoundedRange.getLowerBound()
获取下界
|
Bound<T> |
BoundedRange.getUpperBound()
获取上界
|
static <T extends Comparable<? super T>> |
Bound.greaterThan(T min)
{x | x > min} |
static <T extends Comparable<? super T>> |
Bound.lessThan(T max)
{x | x < max} |
Bound<T> |
Bound.negate()
对当前边界取反
|
static <T extends Comparable<? super T>> |
Bound.noneLowerBound()
{x | x > -∞} |
static <T extends Comparable<? super T>> |
Bound.noneUpperBound()
{x | x < +∞} |
Modifier and Type | Method and Description |
---|---|
int |
Bound.compareTo(Bound<T> bound)
比较另一边界与当前边界在坐标轴上位置的先后顺序。
|
Copyright © 2025. All rights reserved.