Insert into the right place in a sorted MapElement array.
(MapElement<T>[] oldMap, MapElement<T>[] newMap, String name)
| 1493 | * Insert into the right place in a sorted MapElement array. |
| 1494 | */ |
| 1495 | private static <T> boolean removeMap(MapElement<T>[] oldMap, MapElement<T>[] newMap, String name) { |
| 1496 | int pos = find(oldMap, name); |
| 1497 | if ((pos != -1) && (name.equals(oldMap[pos].name))) { |
| 1498 | System.arraycopy(oldMap, 0, newMap, 0, pos); |
| 1499 | System.arraycopy(oldMap, pos + 1, newMap, pos, oldMap.length - pos - 1); |
| 1500 | return true; |
| 1501 | } |
| 1502 | return false; |
| 1503 | } |
| 1504 | |
| 1505 | |
| 1506 | /* |
no test coverage detected