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
ConstructorDescriptionHashMultimap
(HashMultimap<A, B> r) HashMultimap
(Collection<? extends Map.Entry<A, B>> c) HashMultimap
(Map<A, B> m) -
Method Summary
Modifier and TypeMethodDescriptionMethods 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, size
Methods inherited from class eu.bandm.tools.ops.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
- Specified by:
createBackwardSet
in classMapMultimap<A,
B>
-