Class NonMonotonicSequenceException

    • Constructor Detail

      • NonMonotonicSequenceException

        public NonMonotonicSequenceException​(Number wrong,
                                             Number previous,
                                             int index)
        Deprecated.
        Construct the exception. This constructor uses default values assuming that the sequence should have been strictly increasing.
        Parameters:
        wrong - Value that did not match the requirements.
        previous - Previous value in the sequence.
        index - Index of the value that did not match the requirements.
      • NonMonotonicSequenceException

        public NonMonotonicSequenceException​(Number wrong,
                                             Number previous,
                                             int index,
                                             MathArrays.OrderDirection direction,
                                             boolean strict)
        Deprecated.
        Construct the exception.
        Parameters:
        wrong - Value that did not match the requirements.
        previous - Previous value in the sequence.
        index - Index of the value that did not match the requirements.
        direction - Strictly positive for a sequence required to be increasing, negative (or zero) for a decreasing sequence.
        strict - Whether the sequence must be strictly increasing or decreasing.
    • Method Detail

      • getStrict

        public boolean getStrict()
        Deprecated.
        Returns:
        true is the sequence should be strictly monotonic.
      • getIndex

        public int getIndex()
        Deprecated.
        Get the index of the wrong value.
        Returns:
        the current index.
      • getPrevious

        public Number getPrevious()
        Deprecated.
        Returns:
        the previous value.