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

@Experimental public interface SetMultimap<K,V>
  • 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

      boolean containsKey(Object o)
    • containsValue

      boolean containsValue(Object o)
    • containsEntry

      boolean containsEntry(Object o0, Object o1)
    • get

    • keySet

      Set<K> keySet()
    • values

      Collection<V> values()
    • entrySet

      Set<Map.Entry<K,V>> entrySet()
    • keyIterator

      Iterator<K> keyIterator()
    • valueIterator

      Iterator<V> valueIterator()
    • entryIterator

      Iterator<Map.Entry<K,V>> entryIterator()
    • nativeEntryIterator

      default Iterator<Map.Entry<K,Object>> nativeEntryIterator() throws UnsupportedOperationException
      Iterates over the raw internal structure. Optional operation.
      Returns:
      native iterator, if supported
      Throws:
      UnsupportedOperationException
    • tupleIterator

      <T> Iterator<T> tupleIterator(BiFunction<K,V,T> dataConverter)
    • tupleStream

      default <T> Stream<T> tupleStream(BiFunction<K,V,T> dataConverter)
    • hashCode

      int hashCode()
      Returns the hash code for this multimap. The hash code is defined to equal the hash of a Set<Map.Entry<K,V>> view (rather than to equal the hash code of Map<K,Set<V>>).
      Overrides:
      hashCode in class Object
      Returns:
      the hash code for this multimap
    • equals

      boolean equals(Object other)
      Compares the specified object for equality against this multimap. The notion of equality is equal to the Set<Map.Entry<K,V>> view of a multimap, i.e., all key-value pairs have to equal.
      Overrides:
      equals in class Object
      Parameters:
      other - the object that is checked for equality against this multimap
      Returns:
      true if the specified object is equal to this map