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 Details

    • Range

      @Deprecated public Range(@Nullable E min, @Nullable E max)
      Deprecated.
      prefer make(Number, Number) instead as this one does not check parameters
      Create 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

      public E getMinimum()
      Returns:
      lower bound of this range
    • getMaximum

      public E getMaximum()
      Returns:
      upper bound of this range