K
- the key type.V
- the value type (i.e. the values stored in the collections).public class SetMap<K,V> extends CollectionMap<K,V,java.util.Set<V>>
Constructor and Description |
---|
SetMap() |
SetMap(java.util.Map<K,java.util.Set<V>>... otherMaps) |
SetMap(SetMap<K,V>... otherMaps) |
SetMap(java.util.function.Supplier<java.util.Set<V>> setFactory) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<V> |
createNewCollection()
Returns a new instance of the underlying collection to be used as value for
the underlaying map.
|
SetMap<V,K> |
invert()
Inverts this SetMap, i.e.
|
static <K,V> SetMap<K,V> |
of(K key,
V... values)
Factory function for a
SetMap with one entry. |
add, addAll, addAll, addAll, clear, collectionsToArrays, contains, containsCollection, createUnderlyingMap, createWithCollectionSupplier, getCollection, getCollectionOrElse, getCollectionOrEmpty, getKeys, getValueCount, getValues, iterator, remove, removeCollection, size, toString
public SetMap()
protected java.util.Set<V> createNewCollection()
CollectionMap
createNewCollection
in class CollectionMap<K,V,java.util.Set<V>>