类的使用
io.github.palexdev.virtualizedfx.beans.NumberRange
使用NumberRange的程序包
-
io.github.palexdev.virtualizedfx.beans中NumberRange的使用
修饰符和类型方法说明static <T extends Number>
NumberRange<T>NumberRange.of(T val) Returns a new instance of NumberRange with the given val as both min and max bounds.static <T extends Number>
NumberRange<T>NumberRange.of(T min, T max) Returns a new instance of NumberRange with the given min and max bounds.修饰符和类型方法说明NumberRange.expandRange(NumberRange<Integer> range) Expands a range on integers to a List of integers.NumberRange.expandRangeToSet(NumberRange<Integer> range) Expands a range of integers to a Set of integers.static booleanNumberRange.inRangeOf(double val, NumberRange<Double> range) Checks if the given value is contained in the given range (bounds are included).static booleanNumberRange.inRangeOf(float val, NumberRange<Float> range) Checks if the given value is contained in the given range (bounds are included).static booleanNumberRange.inRangeOf(int val, NumberRange<Integer> range) Checks if the given value is contained in the given range (bounds are included).static booleanNumberRange.inRangeOf(long val, NumberRange<Long> range) Checks if the given value is contained in the given range (bounds are included).voidNumberRangeProperty.set(NumberRange<T> newValue) Overridden to check equality between ranges and return in case ranges are the same.类型变量类型为NumberRange的io.github.palexdev.virtualizedfx.beans中的方法参数修饰符和类型方法说明static booleanNumberRange.inRangeOf(double val, List<NumberRange<Double>> ranges) Checks if the given value is contained in any of the given ranges (bounds are included).static booleanNumberRange.inRangeOf(float val, List<NumberRange<Float>> ranges) Checks if the given value is contained in any of the given ranges (bounds are included).static booleanNumberRange.inRangeOf(int val, List<NumberRange<Integer>> ranges) Checks if the given value is contained in any of the given ranges (bounds are included).static booleanNumberRange.inRangeOf(long val, List<NumberRange<Long>> ranges) Checks if the given value is contained in any of the given ranges (bounds are included). -
io.github.palexdev.virtualizedfx.utils中NumberRange的使用
修饰符和类型方法说明static <T> ListChangeHelper.ChangeListChangeHelper.processChange(ListChangeListener.Change<? extends T> change, NumberRange<Integer> indexes) Processes the given change for the given range of indexes.限定符构造器说明ChangeBean(NumberRange<Integer> range, Set<Integer> added) ReplaceBean(NumberRange<Integer> range, Set<Integer> changed, Set<Integer> removed)