Gets the first array index at which the specified value is found. @param value the value to find @param array the array to search @param ignoreIndex an array index to ignore @return the index, or -1 if not found
(double value, double[] array, int ignoreIndex)
| 979 | * @return the index, or -1 if not found |
| 980 | */ |
| 981 | protected static int getIndex(double value, double[] array, int ignoreIndex) { |
| 982 | for (int i = 0; i < array.length; i++) { |
| 983 | if (i == ignoreIndex) { |
| 984 | continue; |
| 985 | } |
| 986 | if (array[i] == value) { |
| 987 | return i; |
| 988 | } |
| 989 | } |
| 990 | return -1; |
| 991 | } |
| 992 | |
| 993 | /** |
| 994 | * Returns an array of row numbers. |
no outgoing calls
no test coverage detected