Package io.usethesource.capsule
Interface SetMultimap<K,V>
- All Known Subinterfaces:
BinaryRelation<T,
,U> BinaryRelation.Immutable<K,
,V> BinaryRelation.Transient<K,
,V> SetMultimap.Immutable<K,
,V> SetMultimap.Transient<K,
,V> SetMultimapEq<K,
,V> SetMultimapEq.Immutable<K,
,V> SetMultimapEq.Transient<K,
V>
- All Known Implementing Classes:
AbstractPersistentTrieSetMultimap
,AbstractTransientTrieSetMultimap
,AbstractTrieSetMultimap
,PersistentBidirectionalTrieSetMultimap
,PersistentTrieSetMultimap
,PersistentTrieSetMultimap.TransientTrieSetMultimap
,TransientBidirectionalTrieSetMultimap
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsEntry
(Object o0, Object o1) boolean
boolean
entrySet()
boolean
Compares the specified object for equality against this multimap.int
hashCode()
Returns the hash code for this multimap.boolean
isEmpty()
keySet()
Iterates over the raw internal structure.int
size()
Return the number of key-value pairs contained in this multimap.default int
<T> Iterator
<T> tupleIterator
(BiFunction<K, V, T> dataConverter) default <T> Stream
<T> tupleStream
(BiFunction<K, V, T> dataConverter) values()
-
Method Details
-
size
int size()Return the number of key-value pairs contained in this multimap.- Returns:
- number of key-value pairs in this multimap
-
sizeDistinct
default int sizeDistinct() -
isEmpty
boolean isEmpty() -
containsKey
-
containsValue
-
containsEntry
-
get
-
keySet
-
values
Collection<V> values() -
entrySet
-
keyIterator
-
valueIterator
-
entryIterator
-
nativeEntryIterator
Iterates over the raw internal structure. Optional operation.- Returns:
- native iterator, if supported
- Throws:
UnsupportedOperationException
-
tupleIterator
-
tupleStream
-
hashCode
int hashCode() -
equals
-