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
-
public class Range<E extends Number & Comparable<? super E>> extends Object
Range of numerical values (inclusive).
-
-
Constructor Summary
Constructors Constructor Description Range(E min, E max)
Deprecated.prefermake(Number, Number)
instead as this one does not check parameters
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description E
getMaximum()
E
getMinimum()
static <E extends Number & Comparable<? super E>>
Range<E>make(E min, E max)
Create range.
-
-
-
Constructor Detail
-
Range
@Deprecated public Range(@Nullable E min, @Nullable E max)
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 Detail
-
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
public E getMinimum()
- Returns:
- lower bound of this range
-
getMaximum
public E getMaximum()
- Returns:
- upper bound of this range
-
-