Package eu.bandm.tools.ops
Class HashMultimap<A,B>
java.lang.Object
java.util.AbstractCollection<Map.Entry<A,B>>
eu.bandm.tools.ops.AbstractMultimap<A,B>
eu.bandm.tools.ops.MapMultimap<A,B>
eu.bandm.tools.ops.HashMultimap<A,B>
- All Implemented Interfaces:
Multimap<A,,B> Serializable,Iterable<Map.Entry<A,,B>> Collection<Map.Entry<A,,B>> BiPredicate<A,,B> Set<Map.Entry<A,B>>
- Direct Known Subclasses:
CheckedMultimap_D,CheckedMultimap_R,CheckedMultimap_RD
An Implementation where both directions of look-up are realized by hashing.
- See Also:
-
Field Summary
Fields inherited from class eu.bandm.tools.ops.MapMultimap
backward, forward, size -
Constructor Summary
ConstructorsConstructorDescriptionHashMultimap(HashMultimap<A, B> r) HashMultimap(Collection<? extends Map.Entry<A, B>> c) HashMultimap(Map<A, B> m) -
Method Summary
Modifier and TypeMethodDescriptionCreates the preimage.Methods inherited from class eu.bandm.tools.ops.MapMultimap
add, add, clear, contains, contains, domain, image, imageMap, imageUnchecked, iterator, preimage, preimageMap, preimageUnchecked, range, remove, remove, removeAllDomain, removeAllRange, removeDomain, removeRange, retainAllDomain, retainAllRange, sizeMethods inherited from class eu.bandm.tools.ops.AbstractMultimap
containsUnchecked, imageAll, imageAllUnchecked, preimageAll, preimageAllUnchecked, removeAllDomainUnchecked, removeAllRangeUnchecked, removeDomainUnchecked, removeRangeUnchecked, removeUnchecked, retainAllDomainUnchecked, retainAllRangeUnchecked, testMethods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.function.BiPredicate
and, negate, orMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
HashMultimap
public HashMultimap() -
HashMultimap
-
HashMultimap
-
HashMultimap
-
-
Method Details
-
createForwardSet
- Specified by:
createForwardSetin classMapMultimap<A,B>
-
createBackwardSet
Description copied from class:MapMultimapCreates the preimage.- Specified by:
createBackwardSetin classMapMultimap<A,B>
-