Package org.nd4j.common.util
Class LinkedMultiValueMap<K,V>
- java.lang.Object
-
- org.nd4j.common.util.LinkedMultiValueMap<K,V>
-
- All Implemented Interfaces:
Serializable,Map<K,List<V>>,MultiValueMap<K,V>
public class LinkedMultiValueMap<K,V> extends Object implements MultiValueMap<K,V>, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LinkedMultiValueMap()LinkedMultiValueMap(int initialCapacity)LinkedMultiValueMap(Map<K,List<V>> otherMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(K key, V value)voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<K,List<V>>>entrySet()booleanequals(Object obj)List<V>get(Object key)VgetFirst(K key)inthashCode()booleanisEmpty()Set<K>keySet()List<V>put(K key, List<V> value)voidputAll(Map<? extends K,? extends List<V>> m)List<V>remove(Object key)voidset(K key, V value)voidsetAll(Map<K,V> values)intsize()Map<K,V>toSingleValueMap()StringtoString()Collection<List<V>>values()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
toSingleValueMap
public Map<K,V> toSingleValueMap()
- Specified by:
toSingleValueMapin interfaceMultiValueMap<K,V>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<K,V>
-
equals
public boolean equals(Object obj)
-
hashCode
public int hashCode()
-
-