java.lang.Object
io.qt.QtObject
io.qt.internal.AbstractMultiAssociativeContainer<K,V>
io.qt.internal.AbstractMultiMap<K,V>
io.qt.core.QMultiMap<K,V>
- All Implemented Interfaces:
QtObjectInterface,Cloneable,Iterable<QPair<K,,V>> Map<K,,List<V>> NavigableMap<K,,List<V>> SortedMap<K,List<V>>
Java wrapper for Qt class QMultiMap
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor -
Constructor Summary
ConstructorsModifierConstructorDescriptionQMultiMap(QMetaType.Type keyMetaType, QMetaType valueMetaType) QMultiMap(QMetaType.Type keyMetaType, QMetaType.Type valueMetaType) QMultiMap(QMetaType.Type keyMetaType, Class<V> valueType) QMultiMap(QMetaType keyMetaType, QMetaType.Type valueMetaType) protectedQMultiMap(Class<K> keyType, QMetaType.Type valueMetaType) -
Method Summary
Modifier and TypeMethodDescriptionprotected final QAssociativeIterator<K,V> begin()final voidclear()clone()final Comparator<K>protected final QAssociativeConstIterator<K,V> protected final QAssociativeConstIterator<K,V> constEnd()final booleanfinal booleanfinal booleancontainsKey(Object key) final booleancontainsValue(Object value) final intcount()final intfinal intprotected final QAssociativeIterator<K,V> end()booleanUsed to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.final QAssociativeConstIterator<K,V> final QAssociativeConstIterator<K,V> final Vfirst()final KfirstKey()inthashCode()final voidfinal booleanisEmpty()final Kfinal Kkeys()final Vlast()final KlastKey()final QAssociativeConstIterator<K,V> lowerBound(K key) static <K,V> QMultiMap<K, V> of(K k1, V v1) Returns a QMultiMap containing a single mapping.static <K,V> QMultiMap<K, V> of(K k1, V v1, K k2, V v2) Returns a QMultiMap containing two mappings.static <K,V> QMultiMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3) Returns a QMultiMap containing three mappings.static <K,V> QMultiMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) Returns a QMultiMap containing four mappings.static <K,V> QMultiMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) Returns a QMultiMap containing five mappings.static <K,V> QMultiMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6) Returns a QMultiMap containing six mappings.static <K,V> QMultiMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7) Returns a QMultiMap containing seven mappings.static <K,V> QMultiMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8) Returns a QMultiMap containing eight mappings.static <K,V> QMultiMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9) Returns a QMultiMap containing nine mappings.static <K,V> QMultiMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9, K k10, V v10) Returns a QMultiMap containing ten mappings.static <K,V> QMultiMap<K, V> Returns a QMultiMap containing keys and values extracted from the given entries.voidreadFrom(QDataStream stream) final intfinal intfinal voidreplaceOne(K key, V value) final intsize()final VtoString()final voidunite(Map<? super K, ? extends Collection<? super V>> other) final QAssociativeConstIterator<K,V> upperBound(K key) final Vfinal Vfinal Collection<List<V>>values()voidwriteTo(QDataStream stream) Methods inherited from class io.qt.internal.AbstractMultiMap
ceilingEntry, ceilingKey, descendingKeySet, descendingMap, entrySet, firstEntry, floorEntry, floorKey, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, subMap, subMap, tailMap, tailMapMethods inherited from class io.qt.internal.AbstractMultiAssociativeContainer
iterator, putAllMethods inherited from class io.qt.QtObject
dispose, isDisposedMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
QMultiMap
-
QMultiMap
-
QMultiMap
-
QMultiMap
-
QMultiMap
-
QMultiMap
-
QMultiMap
-
QMultiMap
-
QMultiMap
-
QMultiMap
-
QMultiMap
-
-
Method Details
-
clone
-
clear
-
contains
-
count
-
count
-
begin
-
end
-
constBegin
-
constEnd
-
find
-
first
-
firstKey
-
insert
-
isEmpty
-
key
-
key
-
keys
-
keys
-
last
-
lastKey
-
lowerBound
-
removeAll
-
size
-
take
-
uniqueKeys
-
unite
-
upperBound
-
value
-
value
-
values
-
values
-
contains
-
count
-
find
-
removeAll
-
replaceOne
-
equals
Description copied from class:QtObjectUsed to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
comparator
- Specified by:
comparatorin interfaceSortedMap<K,V>
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
get
-
put
-
remove
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
hashCode
-
toString
-
writeTo
-
readFrom
-
of
Returns a QMultiMap containing a single mapping.- Type Parameters:
K- theQMultiMap's key typeV- theQMultiMap's value type- Parameters:
k1- the mapping's keyv1- the mapping's value- Returns:
- a
QMultiMapcontaining the specified mapping - Throws:
NullPointerException- if the key or the value isnull
-
of
Returns a QMultiMap containing two mappings.- Type Parameters:
K- theQMultiMap's key typeV- theQMultiMap's value type- Parameters:
k1- the first mapping's keyv1- the first mapping's valuek2- the second mapping's keyv2- the second mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings - Throws:
NullPointerException- if any key or value isnull
-
of
Returns a QMultiMap containing three mappings.- Type Parameters:
K- theQMultiMap's key typeV- theQMultiMap's value type- Parameters:
k1- the first mapping's keyv1- the first mapping's valuek2- the second mapping's keyv2- the second mapping's valuek3- the third mapping's keyv3- the third mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings - Throws:
NullPointerException- if any key or value isnull
-
of
Returns a QMultiMap containing four mappings.- Type Parameters:
K- theQMultiMap's key typeV- theQMultiMap's value type- Parameters:
k1- the first mapping's keyv1- the first mapping's valuek2- the second mapping's keyv2- the second mapping's valuek3- the third mapping's keyv3- the third mapping's valuek4- the fourth mapping's keyv4- the fourth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings - Throws:
NullPointerException- if any key or value isnull
-
of
Returns a QMultiMap containing five mappings.- Type Parameters:
K- theQMultiMap's key typeV- theQMultiMap's value type- Parameters:
k1- the first mapping's keyv1- the first mapping's valuek2- the second mapping's keyv2- the second mapping's valuek3- the third mapping's keyv3- the third mapping's valuek4- the fourth mapping's keyv4- the fourth mapping's valuek5- the fifth mapping's keyv5- the fifth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings - Throws:
NullPointerException- if any key or value isnull
-
of
public static <K,V> QMultiMap<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6) Returns a QMultiMap containing six mappings.- Type Parameters:
K- theQMultiMap's key typeV- theQMultiMap's value type- Parameters:
k1- the first mapping's keyv1- the first mapping's valuek2- the second mapping's keyv2- the second mapping's valuek3- the third mapping's keyv3- the third mapping's valuek4- the fourth mapping's keyv4- the fourth mapping's valuek5- the fifth mapping's keyv5- the fifth mapping's valuek6- the sixth mapping's keyv6- the sixth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings - Throws:
NullPointerException- if any key or value isnull
-
of
public static <K,V> QMultiMap<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7) Returns a QMultiMap containing seven mappings.- Type Parameters:
K- theQMultiMap's key typeV- theQMultiMap's value type- Parameters:
k1- the first mapping's keyv1- the first mapping's valuek2- the second mapping's keyv2- the second mapping's valuek3- the third mapping's keyv3- the third mapping's valuek4- the fourth mapping's keyv4- the fourth mapping's valuek5- the fifth mapping's keyv5- the fifth mapping's valuek6- the sixth mapping's keyv6- the sixth mapping's valuek7- the seventh mapping's keyv7- the seventh mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings - Throws:
NullPointerException- if any key or value isnull
-
of
public static <K,V> QMultiMap<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8) Returns a QMultiMap containing eight mappings.- Type Parameters:
K- theQMultiMap's key typeV- theQMultiMap's value type- Parameters:
k1- the first mapping's keyv1- the first mapping's valuek2- the second mapping's keyv2- the second mapping's valuek3- the third mapping's keyv3- the third mapping's valuek4- the fourth mapping's keyv4- the fourth mapping's valuek5- the fifth mapping's keyv5- the fifth mapping's valuek6- the sixth mapping's keyv6- the sixth mapping's valuek7- the seventh mapping's keyv7- the seventh mapping's valuek8- the eighth mapping's keyv8- the eighth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings - Throws:
NullPointerException- if any key or value isnull
-
of
public static <K,V> QMultiMap<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9) Returns a QMultiMap containing nine mappings.- Type Parameters:
K- theQMultiMap's key typeV- theQMultiMap's value type- Parameters:
k1- the first mapping's keyv1- the first mapping's valuek2- the second mapping's keyv2- the second mapping's valuek3- the third mapping's keyv3- the third mapping's valuek4- the fourth mapping's keyv4- the fourth mapping's valuek5- the fifth mapping's keyv5- the fifth mapping's valuek6- the sixth mapping's keyv6- the sixth mapping's valuek7- the seventh mapping's keyv7- the seventh mapping's valuek8- the eighth mapping's keyv8- the eighth mapping's valuek9- the ninth mapping's keyv9- the ninth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings - Throws:
NullPointerException- if any key or value isnull
-
of
public static <K,V> QMultiMap<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9, K k10, V v10) Returns a QMultiMap containing ten mappings.- Type Parameters:
K- theQMultiMap's key typeV- theQMultiMap's value type- Parameters:
k1- the first mapping's keyv1- the first mapping's valuek2- the second mapping's keyv2- the second mapping's valuek3- the third mapping's keyv3- the third mapping's valuek4- the fourth mapping's keyv4- the fourth mapping's valuek5- the fifth mapping's keyv5- the fifth mapping's valuek6- the sixth mapping's keyv6- the sixth mapping's valuek7- the seventh mapping's keyv7- the seventh mapping's valuek8- the eighth mapping's keyv8- the eighth mapping's valuek9- the ninth mapping's keyv9- the ninth mapping's valuek10- the tenth mapping's keyv10- the tenth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings - Throws:
NullPointerException- if any key or value isnull
-
ofEntries
@SafeVarargs public static <K,V> QMultiMap<K,V> ofEntries(Map.Entry<? extends K, ? extends V> entry0, Map.Entry<? extends K, ? extends V>... entries) Returns a QMultiMap containing keys and values extracted from the given entries.- Type Parameters:
K- theQMultiMap's key typeV- theQMultiMap's value type- Parameters:
entries-java.util.Map.Entrys containing the keys and values from which the map is populated- Returns:
- a
QMultiMapcontaining the specified mappings - Throws:
NullPointerException- if any entry, key, or value isnull, or if theentriesarray isnull
-