Package com.atlassian.bamboo.utils
Class Range<E extends Number & Comparable<? super E>>
java.lang.Object
com.atlassian.bamboo.utils.Range<E>
- Type Parameters:
E
-
Range of numerical values (inclusive).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Number & Comparable<? super E>>
Range<E>make
(E min, E max) Create range.
-
Constructor Details
-
Range
Deprecated.prefermake(Number, Number)
instead as this one does not check parametersCreate range. This constructor is public as it is used in named query.- Parameters:
min
-max
-
-
-
Method Details
-
make
public static <E extends Number & Comparable<? super E>> Range<E> make(@NotNull E min, @NotNull E max) Create range.- Parameters:
min
-max
-- Returns:
- a new range.
-
getMinimum
- Returns:
- lower bound of this range
-
getMaximum
- Returns:
- upper bound of this range
-
make(Number, Number)
instead as this one does not check parameters