public class NonMonotonousSequenceException extends MathIllegalNumberException
| Constructor and Description |
|---|
NonMonotonousSequenceException(java.lang.Number wrong,
java.lang.Number previous,
int index)
Construct the exception.
|
NonMonotonousSequenceException(java.lang.Number wrong,
java.lang.Number previous,
int index,
MathUtils.OrderDirection direction,
boolean strict)
Construct the exception.
|
| Modifier and Type | Method and Description |
|---|---|
MathUtils.OrderDirection |
getDirection() |
int |
getIndex()
Get the index of the wrong value.
|
java.lang.Number |
getPrevious() |
boolean |
getStrict() |
getArgumentgetArguments, getGeneralPattern, getLocalizedMessage, getMessage, getMessage, getSpecificPatternpublic NonMonotonousSequenceException(java.lang.Number wrong,
java.lang.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 NonMonotonousSequenceException(java.lang.Number wrong,
java.lang.Number previous,
int index,
MathUtils.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 MathUtils.OrderDirection getDirection()
public boolean getStrict()
true is the sequence should be strictly monotonous.public int getIndex()
public java.lang.Number getPrevious()
Copyright © 2010 - 2023 Adobe. All Rights Reserved