()
| 137 | } |
| 138 | |
| 139 | @Override |
| 140 | public double max() |
| 141 | { |
| 142 | if(maxCache != null) |
| 143 | return maxCache; |
| 144 | double result = array[startIndex]; |
| 145 | for(int i = startIndex+1; i < endIndex; i++) |
| 146 | result = Math.max(result, array[i]); |
| 147 | |
| 148 | return (maxCache = result); |
| 149 | } |
| 150 | |
| 151 | @Override |
| 152 | public double sum() |
no outgoing calls
no test coverage detected