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 interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsEntry(Object o0, Object o1) booleanbooleanentrySet()booleanCompares the specified object for equality against this multimap.inthashCode()Returns the hash code for this multimap.booleanisEmpty()keySet()Iterates over the raw internal structure.intsize()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
-
equals
-