public class MapEntrySet<K,V> extends LinkedHashSet<Entry<K,V>>
List and Map. The underlying instance is a map - the list will hold the
maps entries Map.entrySet().
Problem: It is not possible to create a class implementing both interfaces of List and Map. There is
an interface name-clash on the remote(Object) method.| Constructor and Description |
|---|
MapEntrySet(Map<K,V> map) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Entry<K,V> e) |
Entry<K,V> |
add(K key,
V value) |
Map<K,V> |
map()
map
|
boolean |
remove(Object o) |
void |
setDirectSynchronization(boolean sync)
setDirectSynchronization
|
spliteratorequals, hashCode, removeAlladdAll, containsAll, retainAll, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitaddAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, removeAll, retainAll, size, toArray, toArrayparallelStream, removeIf, streamCopyright © 2012–2018. All rights reserved.