Package eu.bandm.tools.util.nonnull
Class MapProxy.NonNullMapEntrySet<A,B>
- Type Parameters:
A- the type of the keysB- the type of the values
- All Implemented Interfaces:
Iterable<Map.Entry<A,,B>> Collection<Map.Entry<A,,B>> Set<Map.Entry<A,B>>
Putting null as a value (not as a key) must also be prevented on this way:
NonNullMap -> entrySet() -> NonNullMapEntrySet -> iterator() ->
NonNullMapEntryIterator -> next() -> NonNullMapEntry
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNonNullMapEntrySet(Set<Map.Entry<A, B>> peer) Not directly accessible by the user. -
Method Summary
Methods inherited from class java.util.AbstractSet
removeAllMethods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, 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, toArray
-
Field Details
-
peer
The object from JDK runtime which makes the real work.
-
-
Constructor Details
-
NonNullMapEntrySet
Not directly accessible by the user.- Parameters:
peer- The object from JDK runtime which makes the real work.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
iterator
-
size
public int size()
-