java.lang.Object
me.sbasalaev.collection.Multimap<K,V,Set<V>>
me.sbasalaev.collection.SetMultimap<K,V>
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
MutableSetMultimap
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder of immutable list multimaps. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,V> SetMultimap.Builder <K, V> build()Builder of immutable list multimaps.clone()Returns a shallow copy of this multimap.booleancontainsEntry(Object key, Object value) Whether given key corresponds to given value in this map.static <K,V> SetMultimap <K, V> empty()Empty list multimap.entries()All key-value associations of this multimap.booleanWhether given object is equal to this multimap.Set of values associated with given key in this multimap.Methods inherited from class me.sbasalaev.collection.Multimap
collectionEntries, containsEntry, containsKey, hashCode, isEmpty, keys, keySize, nonEmpty, size, toString, values
-
Constructor Details
-
SetMultimap
public SetMultimap()Constructor for subclasses.
-
-
Method Details
-
empty
Empty list multimap. -
build
Builder of immutable list multimaps. -
get
Set of values associated with given key in this multimap. -
containsEntry
Description copied from class:MultimapWhether given key corresponds to given value in this map. -
entries
Description copied from class:MultimapAll key-value associations of this multimap. If this multimap allows multiple value associations to the single key (like e. g.ListMultimap) then the same entry is returned multiple times. -
clone
Description copied from class:MultimapReturns a shallow copy of this multimap. The returned multimap is immutable, has the same type and contains the same collections of elements. The multimap is allowed to return itself if it is immutable. -
equals
Description copied from class:MultimapWhether given object is equal to this multimap. Multimaps are equal if they map keys to the same collection types of values and the sets ofMultimap.collectionEntries()are the same. Multimaps of different collection types are not equal to each other. In particular empty multimaps of different types are unequal since they return unequal empty collections.
-