MathIllegalArgumentException@Deprecated public class NonMonotonicSequenceException extends MathIllegalNumberException
INTEGER_ZERO| Constructor and Description | 
|---|
| NonMonotonicSequenceException(Number wrong,
                             Number previous,
                             int index)Deprecated.  Construct the exception. | 
| NonMonotonicSequenceException(Number wrong,
                             Number previous,
                             int index,
                             MathArrays.OrderDirection direction,
                             boolean strict)Deprecated.  Construct the exception. | 
| Modifier and Type | Method and Description | 
|---|---|
| MathArrays.OrderDirection | getDirection()Deprecated.  | 
| int | getIndex()Deprecated.  Get the index of the wrong value. | 
| Number | getPrevious()Deprecated.  | 
| boolean | getStrict()Deprecated.  | 
getArgumentcreateInternalError, createInternalError, getLocalizedMessage, getMessage, getMessage, getParts, getSpecifieraddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NonMonotonicSequenceException(Number wrong, Number previous, int index)
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.public NonMonotonicSequenceException(Number wrong, Number previous, int index, MathArrays.OrderDirection direction, boolean strict)
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.public MathArrays.OrderDirection getDirection()
public boolean getStrict()
true is the sequence should be strictly monotonic.public int getIndex()
public Number getPrevious()
Copyright © 2016–2020 Hipparchus.org. All rights reserved.