@Immutable public class TypeSafeHashMultiMap extends Object implements TypeSafeMultiMap, Serializable
Constructor and Description |
---|
TypeSafeHashMultiMap(Map<Key<?>,Collection<?>> map) |
Modifier and Type | Method and Description |
---|---|
Map<Key<?>,Collection<?>> |
asMap() |
boolean |
containsKey(Key<?> key) |
<T> Collection<T> |
get(Key<T> key) |
Set<Key<?>> |
getKeys() |
int |
getSize() |
Iterator<Collection<?>> |
iterator() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public TypeSafeHashMultiMap(@Nonnull Map<Key<?>,Collection<?>> map)
@Nonnull public <T> Collection<T> get(@Nonnull Key<T> key)
get
in interface TypeSafeMultiMap
public boolean containsKey(@Nonnull Key<?> key)
containsKey
in interface TypeSafeMultiMap
@Nonnull public Set<Key<?>> getKeys()
getKeys
in interface TypeSafeMultiMap
@Nonnegative public int getSize()
getSize
in interface TypeSafeMultiMap
@Nonnull public Iterator<Collection<?>> iterator()
iterator
in interface Iterable<Collection<? extends Object>>
@Nonnull public Map<Key<?>,Collection<?>> asMap()
asMap
in interface TypeSafeMultiMap
Copyright © 2009–2016 Tidalwave s.a.s. (http://tidalwave.it). All rights reserved.