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 #findIgnoreCase(MapElement[], CharChunk)
(E[] map, CharChunk name)
| 1336 | * @see #findIgnoreCase(MapElement[], CharChunk) |
| 1337 | */ |
| 1338 | private static <T, E extends MapElement<T>> E exactFindIgnoreCase(E[] map, CharChunk name) { |
| 1339 | int pos = findIgnoreCase(map, name); |
| 1340 | if (pos >= 0) { |
| 1341 | E result = map[pos]; |
| 1342 | if (name.equalsIgnoreCase(result.name)) { |
| 1343 | return result; |
| 1344 | } |
| 1345 | } |
| 1346 | return null; |
| 1347 | } |
| 1348 | |
| 1349 | |
| 1350 | /** |
no test coverage detected