| Modifier and Type | Field and Description |
|---|---|
| private final MathArrays. | direction
Direction (positive for increasing, negative for decreasing). |
| private final int | index
Index of the wrong value. |
| private final Number | previous
Previous value. |
| private static final long | serialVersionUID
Hides org. |
| private final boolean | strict
Whether the sequence must be strictly increasing or decreasing. |
| Access | Constructor and Description |
|---|---|
| public | NonMonotonicSequenceException(Number
Value that did not match the requirements. wrong, Number Previous value in the sequence. previous, int Index of the value that did not match the requirements. index)Construct the exception. |
| public | NonMonotonicSequenceException(Number
Value that did not match the requirements. wrong, Number Previous value in the sequence. previous, int Index of the value that did not match the requirements. index, MathArrays.Strictly positive for a sequence required to be
increasing, negative (or zero) for a decreasing sequence. direction,Whether the sequence must be strictly increasing or
decreasing. strict)Construct the exception. |
| Modifier and Type | Method and Description |
|---|---|
| public MathArrays. | |
| public int | |
| public Number | |
| public boolean |
| direction | back to summary |
|---|---|
| private final MathArrays. Direction (positive for increasing, negative for decreasing). | |
| index | back to summary |
|---|---|
| private final int index Index of the wrong value. | |
| previous | back to summary |
|---|---|
| private final Number previous Previous value. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. Serializable version Id. | |
| strict | back to summary |
|---|---|
| private final boolean strict Whether the sequence must be strictly increasing or decreasing. | |
| NonMonotonicSequenceException | back to summary |
|---|---|
| public NonMonotonicSequenceException(Number wrong, Number previous, int index) Construct the exception. This constructor uses default values assuming that the sequence should have been strictly increasing. | |
| NonMonotonicSequenceException | back to summary |
|---|---|
| public NonMonotonicSequenceException(Number wrong, Number previous, int index, MathArrays. Construct the exception.
| |
| getDirection | back to summary |
|---|---|
public MathArrays.
| |
| getIndex | back to summary |
|---|---|
| public int getIndex() Get the index of the wrong value.
| |
| getPrevious | back to summary |
|---|---|
public Number getPrevious()
| |
| getStrict | back to summary |
|---|---|
public boolean getStrict()
| |