Package net.cscott.jutil
Class UnmodifiableMapSet<K,V>
- All Implemented Interfaces:
Iterable<Map.Entry<K,,V>> Collection<Map.Entry<K,,V>> Set<Map.Entry<K,,V>> MapSet<K,V>
- Direct Known Subclasses:
UnmodifiableMultiMapSet
UnmodifiableMapSet prevents mutation of a wrapped
MapSet.- Since:
- 1.3
- Author:
- C. Scott Ananian <cananian@alumni.princeton.edu>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends Map.Entry<K, V>> c) abstract UnmodifiableMap<K, V> asMap()voidclear()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) wrapped()Implementations should return the wrappedMapSethere.Methods inherited from class net.cscott.jutil.CollectionWrapper
contains, containsAll, equals, hashCode, isEmpty, size, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
contains, containsAll, equals, hashCode, isEmpty, size, spliterator, toArray, toArray