java.lang.Object
io.github.palexdev.virtualizedfx.beans.NumberRange<T>
- 类型参数:
T- The type of Number to represent
Simple bean to represent a range of values from min to max.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanexpandRange(NumberRange<Integer> range) Expands a range on integers to a List of integers.expandRangeToSet(NumberRange<Integer> range) Expands a range of integers to a Set of integers.getMax()getMin()inthashCode()static booleaninRangeOf(double val, NumberRange<Double> range) Checks if the given value is contained in the given range (bounds are included).static booleaninRangeOf(double val, List<NumberRange<Double>> ranges) Checks if the given value is contained in any of the given ranges (bounds are included).static booleaninRangeOf(float val, NumberRange<Float> range) Checks if the given value is contained in the given range (bounds are included).static booleaninRangeOf(float val, List<NumberRange<Float>> ranges) Checks if the given value is contained in any of the given ranges (bounds are included).static booleaninRangeOf(int val, NumberRange<Integer> range) Checks if the given value is contained in the given range (bounds are included).static booleaninRangeOf(int val, List<NumberRange<Integer>> ranges) Checks if the given value is contained in any of the given ranges (bounds are included).static booleaninRangeOf(long val, NumberRange<Long> range) Checks if the given value is contained in the given range (bounds are included).static booleaninRangeOf(long val, List<NumberRange<Long>> ranges) Checks if the given value is contained in any of the given ranges (bounds are included).static <T extends Number>
NumberRange<T>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>of(T min, T max) Returns a new instance of NumberRange with the given min and max bounds.toString()
-
构造器详细资料
-
NumberRange
-
-
方法详细资料
-
getMin
- 返回:
- the upper bound
-
getMax
- 返回:
- the lower bound
-
expandRange
Expands a range on integers to a List of integers. -
expandRangeToSet
Expands a range of integers to a Set of integers. -
equals
-
hashCode
public int hashCode() -
toString
-
of
Returns a new instance of NumberRange with the given min and max bounds. -
of
Returns a new instance of NumberRange with the given val as both min and max bounds. -
inRangeOf
Checks if the given value is contained in the given range (bounds are included). -
inRangeOf
Checks if the given value is contained in the given range (bounds are included). -
inRangeOf
Checks if the given value is contained in the given range (bounds are included). -
inRangeOf
Checks if the given value is contained in the given range (bounds are included). -
inRangeOf
Checks if the given value is contained in any of the given ranges (bounds are included). -
inRangeOf
Checks if the given value is contained in any of the given ranges (bounds are included). -
inRangeOf
Checks if the given value is contained in any of the given ranges (bounds are included). -
inRangeOf
Checks if the given value is contained in any of the given ranges (bounds are included).
-