MCPcopy Index your code
hub / github.com/apache/tomcat / exactFind

Method exactFind

java/org/apache/catalina/mapper/Mapper.java:1306–1315  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 10

setDefaultHostNameMethod · 0.95
removeHostMethod · 0.95
addHostAliasMethod · 0.95
removeHostAliasMethod · 0.95
addContextVersionMethod · 0.95
removeContextVersionMethod · 0.95
findContextVersionMethod · 0.95
internalMapMethod · 0.95

Calls 2

findMethod · 0.95
equalsMethod · 0.65

Tested by

no test coverage detected