Returns the Entry in this linked list of key-value pairs whose key is equal to KEY, or null if no such Entry exists.
(K k)
| 82 | /** Returns the Entry in this linked list of key-value pairs whose key |
| 83 | * is equal to KEY, or null if no such Entry exists. */ |
| 84 | Entry get(K k) { |
| 85 | if (k != null && k.equals(key)) { |
| 86 | return this; |
| 87 | } |
| 88 | if (next == null) { |
| 89 | return null; |
| 90 | } |
| 91 | return next.get(key); |
| 92 | } |
| 93 | |
| 94 | /** Stores the key of the key-value pair of this node in the list. */ |
| 95 | K key; |