Returns the Node in this linked list of key-value pairs whose key is equal to KEY, or null if no such Node exists.
(K k)
| 98 | * is equal to KEY, or null if no such Node exists. |
| 99 | */ |
| 100 | Node get(K k) { |
| 101 | if (k != null && k.equals(key)) { |
| 102 | return this; |
| 103 | } |
| 104 | if (next == null) { |
| 105 | return null; |
| 106 | } |
| 107 | return next.get(k); |
| 108 | } |
| 109 | |
| 110 | /** Stores the key of the key-value pair of this node in the list. */ |
| 111 | K key; |