Uses of Class
org.miaixz.bus.core.lang.range.BoundedRange
Packages that use BoundedRange
Package
Description
-
Uses of BoundedRange in org.miaixz.bus.core.lang.range
Methods in org.miaixz.bus.core.lang.range that return BoundedRangeModifier and TypeMethodDescriptionstatic <T extends Comparable<? super T>>
BoundedRange<T> BoundedRange.all()构建一个上下界皆无限大的区间,即{x | -∞ < x < +∞}static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRange.atLeast(T lowerBound) {x | lowerBound < x < +∞}static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRange.atMost(T upperBound) {x | -∞ < x <= max}static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRange.close(T lowerBound, T upperBound) 构建一个闭区间,即{x | lowerBound <= x <= upperBound}static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRange.closeOpen(T lowerBound, T upperBound) 构建一个左闭右开区间,即{x | lowerBound <= x < upperBound}BoundedRange.gap(BoundedRange<T> other) 若other与当前区间不相连,则获得两区间中间的间隔部分static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRangeOperation.gap(BoundedRange<T> boundedRange, BoundedRange<T> other) 若other与当前区间不相连,则获得两区间中间的间隔部分static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRange.greaterThan(T lowerBound) {x | lowerBound < x < +∞}BoundedRange.intersection(BoundedRange<T> other) 若other与当前区间相交,则获得该区间与当前区间的交集static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRangeOperation.intersection(BoundedRange<T> boundedRange, BoundedRange<T> other) 若other与当前区间相交,则获得该区间与当前区间的交集static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRange.lessThan(T upperBound) {x | -∞ < x < upperBound}static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRange.open(T lowerBound, T upperBound) 构建一个开区间,即{x | lowerBound < x < upperBound}static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRange.openClose(T lowerBound, T upperBound) 构建一个左闭右开区间,即{x | lowerBound < x <= upperBound}BoundedRange.span(BoundedRange<T> other) 获得包含当前区间与指定区间的最小的区间static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRangeOperation.span(BoundedRange<T> boundedRange, BoundedRange<T> other) 获得包含当前区间与指定区间的最小的区间BoundedRange.subAtLeast(T min) 截取当前区间中大于等于min的部分,若min不在该区间中,则返回当前区间本身static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRangeOperation.subAtLeast(BoundedRange<T> boundedRange, T min) 截取当前区间中大于等于min的部分,若min不在该区间中,则返回当前区间本身截取当前区间中小于等于max的部分,若max不在该区间中,则返回当前区间本身static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRangeOperation.subAtMost(BoundedRange<T> boundedRange, T max) 截取当前区间中小于等于max的部分,若max不在该区间中,则返回当前区间本身BoundedRange.subGreatThan(T min) 截取当前区间中大于min的部分,若min不在该区间中,则返回当前区间本身static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRangeOperation.subGreatThan(BoundedRange<T> boundedRange, T min) 截取当前区间中大于min的部分,若min不在该区间中,则返回当前区间本身BoundedRange.subLessThan(T max) 截取当前区间中小于max的部分,若max不在该区间中,则返回当前区间本身static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRangeOperation.subLessThan(BoundedRange<T> boundedRange, T max) 截取当前区间中小于max的部分,若max不在该区间中,则返回当前区间本身Bound.toRange()将当前实例转为一个区间FiniteBound.toRange()将当前实例转为一个区间NoneLowerBound.toRange()将当前实例转为一个区间NoneUpperBound.toRange()将当前实例转为一个区间BoundedRange.unionIfIntersected(BoundedRange<T> other) 若other与当前区间相交,则将其与当前区间合并。static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRangeOperation.unionIfIntersected(BoundedRange<T> boundedRange, BoundedRange<T> other) 若other与当前区间相交,则将其与当前区间合并。Methods in org.miaixz.bus.core.lang.range with parameters of type BoundedRangeModifier and TypeMethodDescriptionBoundedRange.gap(BoundedRange<T> other) 若other与当前区间不相连,则获得两区间中间的间隔部分static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRangeOperation.gap(BoundedRange<T> boundedRange, BoundedRange<T> other) 若other与当前区间不相连,则获得两区间中间的间隔部分BoundedRange.intersection(BoundedRange<T> other) 若other与当前区间相交,则获得该区间与当前区间的交集static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRangeOperation.intersection(BoundedRange<T> boundedRange, BoundedRange<T> other) 若other与当前区间相交,则获得该区间与当前区间的交集booleanBoundedRange.isDisjoint(BoundedRange<T> other) other是否与当前区间不相交static <T extends Comparable<? super T>>
booleanBoundedRangeOperation.isDisjoint(BoundedRange<T> boundedRange, BoundedRange<T> other) boundedRange是否与other前区间不相交booleanBoundedRange.isIntersected(BoundedRange<T> other) other是否与当前区间相交:static <T extends Comparable<? super T>>
booleanBoundedRangeOperation.isIntersected(BoundedRange<T> boundedRange, BoundedRange<T> other) boundedRange是否与other相交booleanBoundedRange.isProperSubset(BoundedRange<T> other) 当前区间是否是other的真子集booleanBoundedRange.isProperSuperset(BoundedRange<T> other) other是否是当前区间的子集booleanBoundedRange.isSubset(BoundedRange<T> other) 当前区间是否是other的子集booleanBoundedRange.isSuperset(BoundedRange<T> other) other是否是当前区间的子集BoundedRange.span(BoundedRange<T> other) 获得包含当前区间与指定区间的最小的区间static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRangeOperation.span(BoundedRange<T> boundedRange, BoundedRange<T> other) 获得包含当前区间与指定区间的最小的区间static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRangeOperation.subAtLeast(BoundedRange<T> boundedRange, T min) 截取当前区间中大于等于min的部分,若min不在该区间中,则返回当前区间本身static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRangeOperation.subAtMost(BoundedRange<T> boundedRange, T max) 截取当前区间中小于等于max的部分,若max不在该区间中,则返回当前区间本身static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRangeOperation.subGreatThan(BoundedRange<T> boundedRange, T min) 截取当前区间中大于min的部分,若min不在该区间中,则返回当前区间本身static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRangeOperation.subLessThan(BoundedRange<T> boundedRange, T max) 截取当前区间中小于max的部分,若max不在该区间中,则返回当前区间本身BoundedRange.unionIfIntersected(BoundedRange<T> other) 若other与当前区间相交,则将其与当前区间合并。static <T extends Comparable<? super T>>
BoundedRange<T> BoundedRangeOperation.unionIfIntersected(BoundedRange<T> boundedRange, BoundedRange<T> other) 若other与当前区间相交,则将其与当前区间合并。