common get logic, used to get by key or get by value @param o the key or value that we're looking for @param index _KEY or _VALUE @return the key (if the value was mapped) or the value (if the key was mapped); null if we couldn't find the specified object
(Comparable o, int index)
| 427 | * object |
| 428 | */ |
| 429 | private Object doGet(Comparable o, int index) |
| 430 | { |
| 431 | checkNonNullComparable(o, index); |
| 432 | Node node = lookup(o, index); |
| 433 | |
| 434 | return ((node == null) ? null |
| 435 | : node.getData(oppositeIndex(index))); |
| 436 | } |
| 437 | |
| 438 | /** |
| 439 | * Get the opposite index of the specified index |
no test coverage detected