public class NonMonotonicSequenceException extends MathIllegalNumberException
| Constructor and Description |
|---|
NonMonotonicSequenceException(Number wrong,
Number previousIn,
int indexIn)
Construct the exception.
|
NonMonotonicSequenceException(Number wrong,
Number previousIn,
int indexIn,
MathArrays.OrderDirection directionIn,
boolean strictIn)
Construct the exception.
|
| Modifier and Type | Method and Description |
|---|---|
MathArrays.OrderDirection |
getDirection() |
int |
getIndex()
Get the index of the wrong value.
|
Number |
getPrevious() |
boolean |
getStrict() |
getArgumentgetContext, getLocalizedMessage, getMessageaddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NonMonotonicSequenceException(Number wrong, Number previousIn, int indexIn)
wrong - Value that did not match the requirements.previousIn - Previous value in the sequence.indexIn - Index of the value that did not match the requirements.public NonMonotonicSequenceException(Number wrong, Number previousIn, int indexIn, MathArrays.OrderDirection directionIn, boolean strictIn)
wrong - Value that did not match the requirements.previousIn - Previous value in the sequence.indexIn - Index of the value that did not match the requirements.directionIn - Strictly positive for a sequence required to be
increasing, negative (or zero) for a decreasing sequence.strictIn - 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 © 2024 CNES. All rights reserved.