3097 |
|
|
3098 |
|
public Iterator<K> iterator() { return this; } |
3099 |
|
|
3100 |
< |
public void forEach(Consumer<? super K> action) { |
3100 |
> |
public void forEachRemaining(Consumer<? super K> action) { |
3101 |
|
forEachKey(action); |
3102 |
|
} |
3103 |
|
|
3141 |
|
|
3142 |
|
public Iterator<V> iterator() { return this; } |
3143 |
|
|
3144 |
< |
public void forEach(Consumer<? super V> action) { |
3144 |
> |
public void forEachRemaining(Consumer<? super V> action) { |
3145 |
|
forEachValue(action); |
3146 |
|
} |
3147 |
|
|
3182 |
|
|
3183 |
|
public Iterator<Map.Entry<K,V>> iterator() { return this; } |
3184 |
|
|
3185 |
< |
public void forEach(Consumer<? super Map.Entry<K,V>> action) { |
3185 |
> |
public void forEachRemaining(Consumer<? super Map.Entry<K,V>> action) { |
3186 |
|
if (action == null) throw new NullPointerException(); |
3187 |
|
V v; |
3188 |
|
while ((v = advanceValue()) != null) |