| Constructor and Description |
|---|
UnmodifiableEntrySet(Set<? extends Map.Entry<K,V>> entrySet) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Map.Entry<K,V> e) |
boolean |
addAll(Collection<? extends Map.Entry<K,V>> c) |
void |
clear() |
boolean |
contains(Object o)
This method is overridden to protect the backing set against
an object with a nefarious equals function that senses
that the equality-candidate is Map.Entry and calls its
setValue method.
|
boolean |
containsAll(Collection<?> coll)
The next two methods are overridden to protect against
an unscrupulous List whose contains(Object o) method senses
when o is a Map.Entry, and calls o.setValue.
|
boolean |
equals(Object o) |
void |
forEach(Consumer<? super Map.Entry<K,V>> action) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<Map.Entry<K,V>> |
iterator() |
Stream<Map.Entry<K,V>> |
parallelStream() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> coll) |
boolean |
retainAll(Collection<?> coll) |
int |
size() |
Spliterator<Map.Entry<K,V>> |
spliterator() |
Stream<Map.Entry<K,V>> |
stream() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitremoveIfpublic int hashCode()
public int size()
public boolean isEmpty()
public boolean addAll(Collection<? extends Map.Entry<K,V>> c)
public boolean remove(Object o)
public boolean removeAll(Collection<?> coll)
public boolean retainAll(Collection<?> coll)
public void clear()
public Spliterator<Map.Entry<K,V>> spliterator()
spliterator in interface Iterable<Map.Entry<K,V>>spliterator in interface Collection<Map.Entry<K,V>>spliterator in interface Set<Map.Entry<K,V>>public Stream<Map.Entry<K,V>> stream()
stream in interface Collection<Map.Entry<K,V>>public Stream<Map.Entry<K,V>> parallelStream()
parallelStream in interface Collection<Map.Entry<K,V>>public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean contains(Object o)
public boolean containsAll(Collection<?> coll)
containsAll in interface Collection<Map.Entry<K,V>>containsAll in interface Set<Map.Entry<K,V>>Copyright © 2020. All rights reserved.