Find a map element given its name in a sorted array of map elements. This will return the element that you were searching for. Otherwise it will return null . @see #find(MapElement[], String)
(E[] map, String name)
| 1304 | * @see #find(MapElement[], String) |
| 1305 | */ |
| 1306 | private static <T, E extends MapElement<T>> E exactFind(E[] map, String name) { |
| 1307 | int pos = find(map, name); |
| 1308 | if (pos >= 0) { |
| 1309 | E result = map[pos]; |
| 1310 | if (name.equals(result.name)) { |
| 1311 | return result; |
| 1312 | } |
| 1313 | } |
| 1314 | return null; |
| 1315 | } |
| 1316 | |
| 1317 | /** |
| 1318 | * Find a map element given its name in a sorted array of map elements. This will return the element that you were |
no test coverage detected