Package eu.bandm.tools.util.multi
Class HashMultimap<A,B>
java.lang.Object
java.util.AbstractCollection<Map.Entry<A,B>>
eu.bandm.tools.util.multi.AbstractMultimap<A,B>
eu.bandm.tools.util.multi.MapMultimap<A,B>
eu.bandm.tools.util.multi.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>>
An Implementation where both directions of look-up are realized by hashing.
- See Also:
-
Field Summary
Fields inherited from class eu.bandm.tools.util.multi.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.util.multi.MapMultimap
add, add, clear, contains, contains, domain, image, imageMap, imageUnchecked, iterator, preimage, preimageMap, preimageUnchecked, range, remove, remove, removeAllDomain, removeAllRange, removeDomain, removeRange, retainAllDomain, retainAllRange, size
Methods inherited from class eu.bandm.tools.util.multi.AbstractMultimap
containsUnchecked, imageAll, imageAllUnchecked, preimageAll, preimageAllUnchecked, removeAllDomainUnchecked, removeAllRangeUnchecked, removeDomainUnchecked, removeRangeUnchecked, removeUnchecked, retainAllDomainUnchecked, retainAllRangeUnchecked, test
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.function.BiPredicate
and, negate, or
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
HashMultimap
public HashMultimap() -
HashMultimap
-
HashMultimap
-
HashMultimap
-
-
Method Details
-
createForwardSet
- Specified by:
createForwardSet
in classMapMultimap<A,
B>
-
createBackwardSet
Description copied from class:MapMultimap
Creates the preimage.- Specified by:
createBackwardSet
in classMapMultimap<A,
B>
-