Class NumberRange<N extends Number>

    • Constructor Detail

      • NumberRange

        public NumberRange​(N number1,
                           N number2,
                           Comparator<N> comp)
        Creates an instance.
        Parameters:
        number1 - the first element, not null
        number2 - the second element, not null
        comp - the comparator to be used, null for natural ordering
        Throws:
        NullPointerException - when element1 is null.
        NullPointerException - when element2 is null.