Java Code Examples for org.apache.commons.math3.exception.util.LocalizedFormats#NOT_INCREASING_SEQUENCE
The following examples show how to use
org.apache.commons.math3.exception.util.LocalizedFormats#NOT_INCREASING_SEQUENCE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NonMonotonicSequenceException.java From astor with GNU General Public License v2.0 | 6 votes |
/** * Construct the exception. * * @param wrong Value that did not match the requirements. * @param previous Previous value in the sequence. * @param index Index of the value that did not match the requirements. * @param direction Strictly positive for a sequence required to be * increasing, negative (or zero) for a decreasing sequence. * @param strict Whether the sequence must be strictly increasing or * decreasing. */ public NonMonotonicSequenceException(Number wrong, Number previous, int index, MathArrays.OrderDirection direction, boolean strict) { super(direction == MathArrays.OrderDirection.INCREASING ? (strict ? LocalizedFormats.NOT_STRICTLY_INCREASING_SEQUENCE : LocalizedFormats.NOT_INCREASING_SEQUENCE) : (strict ? LocalizedFormats.NOT_STRICTLY_DECREASING_SEQUENCE : LocalizedFormats.NOT_DECREASING_SEQUENCE), wrong, previous, Integer.valueOf(index), Integer.valueOf(index - 1)); this.direction = direction; this.strict = strict; this.index = index; this.previous = previous; }
Example 2
Source File: NonMonotonicSequenceException.java From astor with GNU General Public License v2.0 | 6 votes |
/** * Construct the exception. * * @param wrong Value that did not match the requirements. * @param previous Previous value in the sequence. * @param index Index of the value that did not match the requirements. * @param direction Strictly positive for a sequence required to be * increasing, negative (or zero) for a decreasing sequence. * @param strict Whether the sequence must be strictly increasing or * decreasing. */ public NonMonotonicSequenceException(Number wrong, Number previous, int index, MathArrays.OrderDirection direction, boolean strict) { super(direction == MathArrays.OrderDirection.INCREASING ? (strict ? LocalizedFormats.NOT_STRICTLY_INCREASING_SEQUENCE : LocalizedFormats.NOT_INCREASING_SEQUENCE) : (strict ? LocalizedFormats.NOT_STRICTLY_DECREASING_SEQUENCE : LocalizedFormats.NOT_DECREASING_SEQUENCE), wrong, previous, index, index - 1); this.direction = direction; this.strict = strict; this.index = index; this.previous = previous; }
Example 3
Source File: NonMonotonicSequenceException.java From astor with GNU General Public License v2.0 | 6 votes |
/** * Construct the exception. * * @param wrong Value that did not match the requirements. * @param previous Previous value in the sequence. * @param index Index of the value that did not match the requirements. * @param direction Strictly positive for a sequence required to be * increasing, negative (or zero) for a decreasing sequence. * @param strict Whether the sequence must be strictly increasing or * decreasing. */ public NonMonotonicSequenceException(Number wrong, Number previous, int index, MathArrays.OrderDirection direction, boolean strict) { super(direction == MathArrays.OrderDirection.INCREASING ? (strict ? LocalizedFormats.NOT_STRICTLY_INCREASING_SEQUENCE : LocalizedFormats.NOT_INCREASING_SEQUENCE) : (strict ? LocalizedFormats.NOT_STRICTLY_DECREASING_SEQUENCE : LocalizedFormats.NOT_DECREASING_SEQUENCE), wrong, previous, index, index - 1); this.direction = direction; this.strict = strict; this.index = index; this.previous = previous; }
Example 4
Source File: NonMonotonicSequenceException.java From astor with GNU General Public License v2.0 | 6 votes |
/** * Construct the exception. * * @param wrong Value that did not match the requirements. * @param previous Previous value in the sequence. * @param index Index of the value that did not match the requirements. * @param direction Strictly positive for a sequence required to be * increasing, negative (or zero) for a decreasing sequence. * @param strict Whether the sequence must be strictly increasing or * decreasing. */ public NonMonotonicSequenceException(Number wrong, Number previous, int index, MathArrays.OrderDirection direction, boolean strict) { super(direction == MathArrays.OrderDirection.INCREASING ? (strict ? LocalizedFormats.NOT_STRICTLY_INCREASING_SEQUENCE : LocalizedFormats.NOT_INCREASING_SEQUENCE) : (strict ? LocalizedFormats.NOT_STRICTLY_DECREASING_SEQUENCE : LocalizedFormats.NOT_DECREASING_SEQUENCE), wrong, previous, Integer.valueOf(index), Integer.valueOf(index - 1)); this.direction = direction; this.strict = strict; this.index = index; this.previous = previous; }
Example 5
Source File: NonMonotonicSequenceException.java From astor with GNU General Public License v2.0 | 6 votes |
/** * Construct the exception. * * @param wrong Value that did not match the requirements. * @param previous Previous value in the sequence. * @param index Index of the value that did not match the requirements. * @param direction Strictly positive for a sequence required to be * increasing, negative (or zero) for a decreasing sequence. * @param strict Whether the sequence must be strictly increasing or * decreasing. */ public NonMonotonicSequenceException(Number wrong, Number previous, int index, MathArrays.OrderDirection direction, boolean strict) { super(direction == MathArrays.OrderDirection.INCREASING ? (strict ? LocalizedFormats.NOT_STRICTLY_INCREASING_SEQUENCE : LocalizedFormats.NOT_INCREASING_SEQUENCE) : (strict ? LocalizedFormats.NOT_STRICTLY_DECREASING_SEQUENCE : LocalizedFormats.NOT_DECREASING_SEQUENCE), wrong, previous, index, index - 1); this.direction = direction; this.strict = strict; this.index = index; this.previous = previous; }
Example 6
Source File: NonMonotonicSequenceException.java From astor with GNU General Public License v2.0 | 6 votes |
/** * Construct the exception. * * @param wrong Value that did not match the requirements. * @param previous Previous value in the sequence. * @param index Index of the value that did not match the requirements. * @param direction Strictly positive for a sequence required to be * increasing, negative (or zero) for a decreasing sequence. * @param strict Whether the sequence must be strictly increasing or * decreasing. */ public NonMonotonicSequenceException(Number wrong, Number previous, int index, MathArrays.OrderDirection direction, boolean strict) { super(direction == MathArrays.OrderDirection.INCREASING ? (strict ? LocalizedFormats.NOT_STRICTLY_INCREASING_SEQUENCE : LocalizedFormats.NOT_INCREASING_SEQUENCE) : (strict ? LocalizedFormats.NOT_STRICTLY_DECREASING_SEQUENCE : LocalizedFormats.NOT_DECREASING_SEQUENCE), wrong, previous, index, index - 1); this.direction = direction; this.strict = strict; this.index = index; this.previous = previous; }
Example 7
Source File: NonMonotonicSequenceException.java From astor with GNU General Public License v2.0 | 6 votes |
/** * Construct the exception. * * @param wrong Value that did not match the requirements. * @param previous Previous value in the sequence. * @param index Index of the value that did not match the requirements. * @param direction Strictly positive for a sequence required to be * increasing, negative (or zero) for a decreasing sequence. * @param strict Whether the sequence must be strictly increasing or * decreasing. */ public NonMonotonicSequenceException(Number wrong, Number previous, int index, MathArrays.OrderDirection direction, boolean strict) { super(direction == MathArrays.OrderDirection.INCREASING ? (strict ? LocalizedFormats.NOT_STRICTLY_INCREASING_SEQUENCE : LocalizedFormats.NOT_INCREASING_SEQUENCE) : (strict ? LocalizedFormats.NOT_STRICTLY_DECREASING_SEQUENCE : LocalizedFormats.NOT_DECREASING_SEQUENCE), wrong, previous, Integer.valueOf(index), Integer.valueOf(index - 1)); this.direction = direction; this.strict = strict; this.index = index; this.previous = previous; }
Example 8
Source File: NonMonotonicSequenceException.java From astor with GNU General Public License v2.0 | 6 votes |
/** * Construct the exception. * * @param wrong Value that did not match the requirements. * @param previous Previous value in the sequence. * @param index Index of the value that did not match the requirements. * @param direction Strictly positive for a sequence required to be * increasing, negative (or zero) for a decreasing sequence. * @param strict Whether the sequence must be strictly increasing or * decreasing. */ public NonMonotonicSequenceException(Number wrong, Number previous, int index, MathArrays.OrderDirection direction, boolean strict) { super(direction == MathArrays.OrderDirection.INCREASING ? (strict ? LocalizedFormats.NOT_STRICTLY_INCREASING_SEQUENCE : LocalizedFormats.NOT_INCREASING_SEQUENCE) : (strict ? LocalizedFormats.NOT_STRICTLY_DECREASING_SEQUENCE : LocalizedFormats.NOT_DECREASING_SEQUENCE), wrong, previous, Integer.valueOf(index), Integer.valueOf(index - 1)); this.direction = direction; this.strict = strict; this.index = index; this.previous = previous; }