Searches the entire table for float values. Returns missing float (Float.NaN by default) if no valid numbers found.
()
| 4715 | * Returns missing float (Float.NaN by default) if no valid numbers found. |
| 4716 | */ |
| 4717 | protected float getMaxFloat() { |
| 4718 | boolean found = false; |
| 4719 | float max = PConstants.MIN_FLOAT; |
| 4720 | for (int row = 0; row < getRowCount(); row++) { |
| 4721 | for (int col = 0; col < getColumnCount(); col++) { |
| 4722 | float value = getFloat(row, col); |
| 4723 | if (!Float.isNaN(value)) { // TODO no, this should be comparing to the missing value |
| 4724 | if (!found) { |
| 4725 | max = value; |
| 4726 | found = true; |
| 4727 | } else if (value > max) { |
| 4728 | max = value; |
| 4729 | } |
| 4730 | } |
| 4731 | } |
| 4732 | } |
| 4733 | return found ? max : missingFloat; |
| 4734 | } |
| 4735 | |
| 4736 | |
| 4737 | // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
nothing calls this directly
no test coverage detected