Package org.aksw.commons.collector.core
Class SetOverMap<K,V>
- All Implemented Interfaces:
Iterable<Map.Entry<K,,V>> Collection<Map.Entry<K,,V>> Set<Map.Entry<K,V>>
A special helper class to treat a map as a collection of entries
and retain the ability to retrieve the map.
Map.entrySet().add() is not always supported and its usually not
possible to get the map out again.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractSet
removeAllMethods inherited from class java.util.AbstractCollection
addAll, clear, containsAll, isEmpty, retainAll, toArray, toArrayMethods 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
addAll, clear, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
-
Field Details
-
delegate
-
-
Constructor Details
-
SetOverMap
-
-
Method Details
-
getMap
-
add
-
remove
-
contains
-
iterator
-
size
public int size() -
hashCode
public int hashCode() -
equals
-
toString
- Overrides:
toStringin classAbstractCollection<Map.Entry<K,V>>
-