Class QMultiMap<Key,T>
java.lang.Object
io.qt.QtObject
io.qt.core.QMultiMap<Key,T>
- All Implemented Interfaces:
QtObjectInterface,Cloneable,Iterable<QPair<Key,,T>> Map<Key,,List<T>> NavigableMap<Key,,List<T>> SequencedMap<Key,,List<T>> SortedMap<Key,List<T>>
Java wrapper for Qt class QMultiMap
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionQMultiMap(QMetaType.Type keyMetaType, QMetaType valueMetaType) Creating a container with given key and value type.QMultiMap(QMetaType.Type keyMetaType, QMetaType.Type valueMetaType) Creating a container with given key and value type.QMultiMap(QMetaType.Type keyMetaType, Class<T> valueType) Creating a container with given key and value type.Creating a container with given key and value type.QMultiMap(QMetaType keyMetaType, QMetaType.Type valueMetaType) Creating a container with given key and value type.Creating a container with given key and value type.Creating a container with given key and value type.QMultiMap(Class<Key> keyType, QMetaType.Type valueMetaType) Creating a container with given key and value type.Creating a container with given key and value type.Creating a container with given content. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidSeeQMultiMap::operator=(QMultiMap<Key,T>) protected final QAssociativeIterator<Key, T> begin()Provides a mutable C++ iterator to the containers begin.ceilingEntry(Key key) Returns a key-value mapping associated with the least key greater than or equal to the given key, ornullif there is no such key.final KeyceilingKey(Key key) Returns the least key greater than or equal to the given key, ornullif there is no such key.final voidclear()clone()Creates and returns a copy of this object.final Comparator<Key> Returns the maps comparator.protected final QAssociativeConstIterator<Key, T> Provides a constant C++ iterator to the containers begin.protected final QAssociativeConstIterator<Key, T> constEnd()Provides a constant C++ iterator to the containers end.final booleanfinal booleanfinal booleancontainsKey(Object key) Returnstrueif this map contains a mapping for the specified key.final booleancontainsValue(Object value) Returnstrueif this map maps one or more keys to the specified value.final intcount()final intfinal intfinal NavigableSet<Key> Returns a reverse orderNavigableSetview of the keys contained in this map.final NavigableMap<Key, List<T>> Returns a reverse order view of the mappings contained in this map.final voiddetach()Detached the container if it is shared.protected final QAssociativeIterator<Key, T> end()Provides a mutable C++ iterator to the containers end.entrySet()Returns aSetview of the mappings contained in this map.booleanfinal QAssociativeConstIterator<Key, T> final QAssociativeConstIterator<Key, T> final Tfirst()Returns a key-value mapping associated with the least key in this map, ornullif the map is empty.final KeyfirstKey()floorEntry(Key key) Returns a key-value mapping associated with the greatest key less than or equal to the given key, ornullif there is no such key.final KeyReturns the greatest key less than or equal to the given key, ornullif there is no such key.Returns the value to which the specified key is mapped, ornullif this map contains no mapping for the key.inthashCode()Returns the objects's hash code computed byqHash(QMultiMap<Key,T>).Equivalent toheadMap(toKey, false).Returns a copy of the portion of this map whose keys are less than (or equal to, ifinclusiveis true)toKey.higherEntry(Key key) Returns a key-value mapping associated with the least key strictly greater than the given key, ornullif there is no such key.final KeyReturns the least key strictly greater than the given key, ornullif there is no such key.final voidfinal booleanReturns true if container is not shared.final booleanisEmpty()final booleanisSharedWith(QMultiMap<?, ?> other) Returns true of both containers share the same data.iterator()Returns an iterator over elements of typeQPair<K,V>.final Keyfinal Keykeys()Returns aListof the keys contained in this associative container.keySet()Returns aSetview of the keys contained in this map.final Tlast()Returns a key-value mapping associated with the greatest key in this map, ornullif the map is empty.final KeylastKey()final QAssociativeConstIterator<Key, T> lowerBound(Key key) lowerEntry(Key key) Returns a key-value mapping associated with the greatest key strictly less than the given key, ornullif there is no such key.final KeyReturns the greatest key strictly less than the given key, ornullif there is no such key.final NavigableSet<Key> Returns aNavigableSetview of the keys contained in this map.static <Key,T> QMultiMap <Key, T> of(Key k1, T t1) Returns a QMultiMap containing a single mapping.static <Key,T> QMultiMap <Key, T> of(Key k1, T t1, Key k2, T t2) Returns a QMultiMap containing two mappings.static <Key,T> QMultiMap <Key, T> of(Key k1, T t1, Key k2, T t2, Key k3, T t3) Returns a QMultiMap containing three mappings.static <Key,T> QMultiMap <Key, T> of(Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4) Returns a QMultiMap containing four mappings.static <Key,T> QMultiMap <Key, T> of(Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5) Returns a QMultiMap containing five mappings.static <Key,T> QMultiMap <Key, T> of(Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6) Returns a QMultiMap containing six mappings.static <Key,T> QMultiMap <Key, T> of(Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7) Returns a QMultiMap containing seven mappings.static <Key,T> QMultiMap <Key, T> of(Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7, Key k8, T t8) Returns a QMultiMap containing eight mappings.static <Key,T> QMultiMap <Key, T> of(Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7, Key k8, T t8, Key k9, T t9) Returns a QMultiMap containing nine mappings.static <Key,T> QMultiMap <Key, T> of(Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7, Key k8, T t8, Key k9, T t9, Key k10, T t10) Returns a QMultiMap containing ten mappings.static <Key,T> QMultiMap <Key, T> ofEntries(Map.Entry<? extends Key, ? extends T> entry0, Map.Entry<? extends Key, ? extends T> ... entries) Returns a QMultiMap containing keys and values extracted from the given entries.static <Key,T> QMultiMap <Key, T> Returns a QMultiMap containing keys and values extracted from the given pairs.static <Key,T> QMultiMap <Key, T> Returns a QMultiMap containing a single mapping.static <Key,T> QMultiMap <Key, T> Returns a QMultiMap containing two mappings.static <Key,T> QMultiMap <Key, T> Returns a QMultiMap containing three mappings.static <Key,T> QMultiMap <Key, T> ofTyped(QMetaType keyType, QMetaType valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4) Returns a QMultiMap containing four mappings.static <Key,T> QMultiMap <Key, T> ofTyped(QMetaType keyType, QMetaType valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5) Returns a QMultiMap containing five mappings.static <Key,T> QMultiMap <Key, T> ofTyped(QMetaType keyType, QMetaType valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6) Returns a QMultiMap containing six mappings.static <Key,T> QMultiMap <Key, T> ofTyped(QMetaType keyType, QMetaType valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7) Returns a QMultiMap containing seven mappings.static <Key,T> QMultiMap <Key, T> ofTyped(QMetaType keyType, QMetaType valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7, Key k8, T t8) Returns a QMultiMap containing eight mappings.static <Key,T> QMultiMap <Key, T> ofTyped(QMetaType keyType, QMetaType valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7, Key k8, T t8, Key k9, T t9) Returns a QMultiMap containing nine mappings.static <Key,T> QMultiMap <Key, T> ofTyped(QMetaType keyType, QMetaType valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7, Key k8, T t8, Key k9, T t9, Key k10, T t10) Returns a QMultiMap containing ten mappings.static <Key,T> QMultiMap <Key, T> Returns a QMultiMap containing a single mapping.static <Key,T> QMultiMap <Key, T> Returns a QMultiMap containing two mappings.static <Key,T> QMultiMap <Key, T> Returns a QMultiMap containing three mappings.static <Key,T> QMultiMap <Key, T> ofTyped(Class<Key> keyType, Class<T> valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4) Returns a QMultiMap containing four mappings.static <Key,T> QMultiMap <Key, T> ofTyped(Class<Key> keyType, Class<T> valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5) Returns a QMultiMap containing five mappings.static <Key,T> QMultiMap <Key, T> ofTyped(Class<Key> keyType, Class<T> valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6) Returns a QMultiMap containing six mappings.static <Key,T> QMultiMap <Key, T> ofTyped(Class<Key> keyType, Class<T> valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7) Returns a QMultiMap containing seven mappings.static <Key,T> QMultiMap <Key, T> ofTyped(Class<Key> keyType, Class<T> valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7, Key k8, T t8) Returns a QMultiMap containing eight mappings.static <Key,T> QMultiMap <Key, T> ofTyped(Class<Key> keyType, Class<T> valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7, Key k8, T t8, Key k9, T t9) Returns a QMultiMap containing nine mappings.static <Key,T> QMultiMap <Key, T> ofTyped(Class<Key> keyType, Class<T> valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7, Key k8, T t8, Key k9, T t9, Key k10, T t10) Returns a QMultiMap containing ten mappings.static <Key,T> QMultiMap <Key, T> ofTypedEntries(QMetaType keyType, QMetaType valueType, Map.Entry<? extends Key, ? extends T>... entries) Returns a QMultiMap containing keys and values extracted from the given entries.static <Key,T> QMultiMap <Key, T> ofTypedEntries(Class<Key> keyType, Class<T> valueType, Map.Entry<? extends Key, ? extends T>... entries) Returns a QMultiMap containing keys and values extracted from the given entries.static <Key,T> QMultiMap <Key, T> ofTypedPairs(QMetaType keyType, QMetaType valueType, QPair<? extends Key, ? extends T>... pairs) Returns a QMultiMap containing keys and values extracted from the given pairs.static <Key,T> QMultiMap <Key, T> ofTypedPairs(Class<Key> keyType, Class<T> valueType, QPair<? extends Key, ? extends T>... pairs) Returns a QMultiMap containing keys and values extracted from the given pairs.Removes and returns a key-value mapping associated with the least key in this map, ornullif the map is empty.Removes and returns a key-value mapping associated with the greatest key in this map, ornullif the map is empty.Associates the specified value with the specified key in this map.final voidCopies all of the mappings from the specified map to this map.voidreadFrom(QDataStream stream) Removes the mapping for a key from this map if it is present.final intfinal intfinal intremoveIf(BiPredicate<Key, T> predicate) final intfinal voidreplaceOne(Key key, T value) final intsize()Returns a copy of the portion of this map whose keys range fromfromKeytotoKey.Equivalent tosubMap(fromKey, true, toKey, false).final voidSeeQMultiMap::swap(QMultiMap<Key,T>&) Equivalent totailMap(fromKey, true).Returns a copy of the portion of this map whose keys are greater than (or equal to, ifinclusiveis true)fromKey.final TtoString()Returns the string representation of the object given byQVariant(this).toString().final voidfinal voidunite(Map<? super Key, ? extends Collection<? super T>> other) final QAssociativeConstIterator<Key, T> upperBound(Key key) final Tfinal Tvalues()Returns aListof the values contained in this multimap.voidwriteTo(QDataStream stream) Methods 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, replaceAllMethods inherited from interface java.util.NavigableMap
reversedMethods inherited from interface java.util.SequencedMap
sequencedEntrySet, sequencedKeySet, sequencedValues
-
Constructor Details
-
QMultiMap
Creating a container with given key and value type.- Parameters:
keyType- the type KvalueMetaType- the type V
-
QMultiMap
Creating a container with given key and value type.- Parameters:
keyMetaType- the type KvalueType- the type V
-
QMultiMap
Creating a container with given key and value type.- Parameters:
keyMetaType- the type KvalueMetaType- the type V
-
QMultiMap
Creating a container with given key and value type.- Parameters:
keyMetaType- the type KvalueMetaType- the type V
-
QMultiMap
Creating a container with given key and value type.- Parameters:
keyMetaType- the type KvalueMetaType- the type V
-
QMultiMap
Creating a container with given key and value type.- Parameters:
keyType- the type KvalueType- the type V
-
QMultiMap
Creating a container with given content.- Parameters:
other- map
-
QMultiMap
Creating a container with given key and value type.- Parameters:
keyType- the type KvalueMetaType- the type V
-
QMultiMap
Creating a container with given key and value type.- Parameters:
keyMetaType- the type KvalueType- the type V
-
QMultiMap
Creating a container with given key and value type.- Parameters:
keyMetaType- the type KvalueMetaType- the type V
-
-
Method Details
-
clone
Creates and returns a copy of this object. -
clear
-
contains
-
count
-
count
-
begin
Provides a mutable C++ iterator to the containers begin.- Returns:
- begin
-
end
Provides a mutable C++ iterator to the containers end.See
QMultiMap::end() - Returns:
- end
-
constBegin
Provides a constant C++ iterator to the containers begin.- Returns:
- begin
-
constEnd
Provides a constant C++ iterator to the containers end.- Returns:
- end
-
find
- Returns:
- iterator
-
first
-
firstKey
-
insert
-
isEmpty
-
key
-
key
-
keys
Returns aListof the keys contained in this associative container.- Returns:
- list of keys
-
keys
-
last
-
lastKey
-
lowerBound
-
removeIf
-
removeIf
-
removeAll
-
size
-
take
-
uniqueKeys
- Returns:
- list of keys
-
unite
-
unite
-
upperBound
-
value
-
value
-
values
-
listOfValues
-
values
-
contains
-
count
-
find
-
removeAll
-
replaceOne
-
equals
-
comparator
Returns the maps comparator.- Specified by:
comparatorin interfaceSortedMap<Key,T>
-
containsKey
Returnstrueif this map contains a mapping for the specified key.- Specified by:
containsKeyin interfaceMap<Key,T> - See Also:
-
get
-
put
-
remove
-
containsValue
Returnstrueif this map maps one or more keys to the specified value.- Specified by:
containsValuein interfaceMap<Key,T> - See Also:
-
hashCode
-
toString
Returns the string representation of the object given byQVariant(this).toString().- Returns:
- String
-
writeTo
-
readFrom
-
of
Returns a QMultiMap containing a single mapping.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
k1- the mapping's keyt1- 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:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
k1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- 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:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
k1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- 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:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
k1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings - Throws:
NullPointerException- if any key or value isnull
-
of
public static <Key,T> QMultiMap<Key,T> of(Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5) Returns a QMultiMap containing five mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
k1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's valuek5- the fifth mapping's keyt5- the fifth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings - Throws:
NullPointerException- if any key or value isnull
-
of
public static <Key,T> QMultiMap<Key,T> of(Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6) Returns a QMultiMap containing six mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
k1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's valuek5- the fifth mapping's keyt5- the fifth mapping's valuek6- the sixth mapping's keyt6- the sixth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings - Throws:
NullPointerException- if any key or value isnull
-
of
public static <Key,T> QMultiMap<Key,T> of(Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7) Returns a QMultiMap containing seven mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
k1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's valuek5- the fifth mapping's keyt5- the fifth mapping's valuek6- the sixth mapping's keyt6- the sixth mapping's valuek7- the seventh mapping's keyt7- the seventh mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings - Throws:
NullPointerException- if any key or value isnull
-
of
public static <Key,T> QMultiMap<Key,T> of(Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7, Key k8, T t8) Returns a QMultiMap containing eight mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
k1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's valuek5- the fifth mapping's keyt5- the fifth mapping's valuek6- the sixth mapping's keyt6- the sixth mapping's valuek7- the seventh mapping's keyt7- the seventh mapping's valuek8- the eighth mapping's keyt8- the eighth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings - Throws:
NullPointerException- if any key or value isnull
-
of
public static <Key,T> QMultiMap<Key,T> of(Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7, Key k8, T t8, Key k9, T t9) Returns a QMultiMap containing nine mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
k1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's valuek5- the fifth mapping's keyt5- the fifth mapping's valuek6- the sixth mapping's keyt6- the sixth mapping's valuek7- the seventh mapping's keyt7- the seventh mapping's valuek8- the eighth mapping's keyt8- the eighth mapping's valuek9- the ninth mapping's keyt9- the ninth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings - Throws:
NullPointerException- if any key or value isnull
-
of
public static <Key,T> QMultiMap<Key,T> of(Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7, Key k8, T t8, Key k9, T t9, Key k10, T t10) Returns a QMultiMap containing ten mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
k1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's valuek5- the fifth mapping's keyt5- the fifth mapping's valuek6- the sixth mapping's keyt6- the sixth mapping's valuek7- the seventh mapping's keyt7- the seventh mapping's valuek8- the eighth mapping's keyt8- the eighth mapping's valuek9- the ninth mapping's keyt9- the ninth mapping's valuek10- the tenth mapping's keyt10- the tenth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings - Throws:
NullPointerException- if any key or value isnull
-
ofEntries
@SafeVarargs public static <Key,T> QMultiMap<Key,T> ofEntries(Map.Entry<? extends Key, ? extends T> entry0, Map.Entry<? extends Key, ? extends T> ... entries) Returns a QMultiMap containing keys and values extracted from the given entries. It is convenient to create the map entries using theMap.entry()method. For example,import static java.util.Map.entry; QMultiMap<Integer,String> map = QMultiMap.ofEntries( entry(1, "a"), entry(2, "b"), entry(3, "c"), ... entry(26, "z"));- Type Parameters:
Key- theQMultiMap's key typeT- 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
-
ofTyped
public static <Key,T> QMultiMap<Key,T> ofTyped(Class<Key> keyType, Class<T> valueType, Key k1, T t1) Returns a QMultiMap containing a single mapping.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typek1- the mapping's keyt1- the mapping's value- Returns:
- a
QMultiMapcontaining the specified mapping
-
ofTyped
public static <Key,T> QMultiMap<Key,T> ofTyped(Class<Key> keyType, Class<T> valueType, Key k1, T t1, Key k2, T t2) Returns a QMultiMap containing two mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typek1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings
-
ofTyped
public static <Key,T> QMultiMap<Key,T> ofTyped(Class<Key> keyType, Class<T> valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3) Returns a QMultiMap containing three mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typek1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings
-
ofTyped
public static <Key,T> QMultiMap<Key,T> ofTyped(Class<Key> keyType, Class<T> valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4) Returns a QMultiMap containing four mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typek1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings
-
ofTyped
public static <Key,T> QMultiMap<Key,T> ofTyped(Class<Key> keyType, Class<T> valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5) Returns a QMultiMap containing five mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typek1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's valuek5- the fifth mapping's keyt5- the fifth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings
-
ofTyped
public static <Key,T> QMultiMap<Key,T> ofTyped(Class<Key> keyType, Class<T> valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6) Returns a QMultiMap containing six mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typek1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's valuek5- the fifth mapping's keyt5- the fifth mapping's valuek6- the sixth mapping's keyt6- the sixth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings
-
ofTyped
public static <Key,T> QMultiMap<Key,T> ofTyped(Class<Key> keyType, Class<T> valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7) Returns a QMultiMap containing seven mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typek1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's valuek5- the fifth mapping's keyt5- the fifth mapping's valuek6- the sixth mapping's keyt6- the sixth mapping's valuek7- the seventh mapping's keyt7- the seventh mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings
-
ofTyped
public static <Key,T> QMultiMap<Key,T> ofTyped(Class<Key> keyType, Class<T> valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7, Key k8, T t8) Returns a QMultiMap containing eight mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typek1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's valuek5- the fifth mapping's keyt5- the fifth mapping's valuek6- the sixth mapping's keyt6- the sixth mapping's valuek7- the seventh mapping's keyt7- the seventh mapping's valuek8- the eighth mapping's keyt8- the eighth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings
-
ofTyped
public static <Key,T> QMultiMap<Key,T> ofTyped(Class<Key> keyType, Class<T> valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7, Key k8, T t8, Key k9, T t9) Returns a QMultiMap containing nine mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typek1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's valuek5- the fifth mapping's keyt5- the fifth mapping's valuek6- the sixth mapping's keyt6- the sixth mapping's valuek7- the seventh mapping's keyt7- the seventh mapping's valuek8- the eighth mapping's keyt8- the eighth mapping's valuek9- the ninth mapping's keyt9- the ninth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings
-
ofTyped
public static <Key,T> QMultiMap<Key,T> ofTyped(Class<Key> keyType, Class<T> valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7, Key k8, T t8, Key k9, T t9, Key k10, T t10) Returns a QMultiMap containing ten mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typek1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's valuek5- the fifth mapping's keyt5- the fifth mapping's valuek6- the sixth mapping's keyt6- the sixth mapping's valuek7- the seventh mapping's keyt7- the seventh mapping's valuek8- the eighth mapping's keyt8- the eighth mapping's valuek9- the ninth mapping's keyt9- the ninth mapping's valuek10- the tenth mapping's keyt10- the tenth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings
-
ofTyped
public static <Key,T> QMultiMap<Key,T> ofTyped(QMetaType keyType, QMetaType valueType, Key k1, T t1) Returns a QMultiMap containing a single mapping.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typek1- the mapping's keyt1- the mapping's value- Returns:
- a
QMultiMapcontaining the specified mapping
-
ofTyped
public static <Key,T> QMultiMap<Key,T> ofTyped(QMetaType keyType, QMetaType valueType, Key k1, T t1, Key k2, T t2) Returns a QMultiMap containing two mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typek1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings
-
ofTyped
public static <Key,T> QMultiMap<Key,T> ofTyped(QMetaType keyType, QMetaType valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3) Returns a QMultiMap containing three mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typek1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings
-
ofTyped
public static <Key,T> QMultiMap<Key,T> ofTyped(QMetaType keyType, QMetaType valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4) Returns a QMultiMap containing four mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typek1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings
-
ofTyped
public static <Key,T> QMultiMap<Key,T> ofTyped(QMetaType keyType, QMetaType valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5) Returns a QMultiMap containing five mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typek1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's valuek5- the fifth mapping's keyt5- the fifth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings
-
ofTyped
public static <Key,T> QMultiMap<Key,T> ofTyped(QMetaType keyType, QMetaType valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6) Returns a QMultiMap containing six mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typek1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's valuek5- the fifth mapping's keyt5- the fifth mapping's valuek6- the sixth mapping's keyt6- the sixth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings
-
ofTyped
public static <Key,T> QMultiMap<Key,T> ofTyped(QMetaType keyType, QMetaType valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7) Returns a QMultiMap containing seven mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typek1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's valuek5- the fifth mapping's keyt5- the fifth mapping's valuek6- the sixth mapping's keyt6- the sixth mapping's valuek7- the seventh mapping's keyt7- the seventh mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings
-
ofTyped
public static <Key,T> QMultiMap<Key,T> ofTyped(QMetaType keyType, QMetaType valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7, Key k8, T t8) Returns a QMultiMap containing eight mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typek1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's valuek5- the fifth mapping's keyt5- the fifth mapping's valuek6- the sixth mapping's keyt6- the sixth mapping's valuek7- the seventh mapping's keyt7- the seventh mapping's valuek8- the eighth mapping's keyt8- the eighth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings
-
ofTyped
public static <Key,T> QMultiMap<Key,T> ofTyped(QMetaType keyType, QMetaType valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7, Key k8, T t8, Key k9, T t9) Returns a QMultiMap containing nine mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
k1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's valuek5- the fifth mapping's keyt5- the fifth mapping's valuek6- the sixth mapping's keyt6- the sixth mapping's valuek7- the seventh mapping's keyt7- the seventh mapping's valuek8- the eighth mapping's keyt8- the eighth mapping's valuek9- the ninth mapping's keyt9- the ninth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings
-
ofTyped
public static <Key,T> QMultiMap<Key,T> ofTyped(QMetaType keyType, QMetaType valueType, Key k1, T t1, Key k2, T t2, Key k3, T t3, Key k4, T t4, Key k5, T t5, Key k6, T t6, Key k7, T t7, Key k8, T t8, Key k9, T t9, Key k10, T t10) Returns a QMultiMap containing ten mappings.- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typek1- the first mapping's keyt1- the first mapping's valuek2- the second mapping's keyt2- the second mapping's valuek3- the third mapping's keyt3- the third mapping's valuek4- the fourth mapping's keyt4- the fourth mapping's valuek5- the fifth mapping's keyt5- the fifth mapping's valuek6- the sixth mapping's keyt6- the sixth mapping's valuek7- the seventh mapping's keyt7- the seventh mapping's valuek8- the eighth mapping's keyt8- the eighth mapping's valuek9- the ninth mapping's keyt9- the ninth mapping's valuek10- the tenth mapping's keyt10- the tenth mapping's value- Returns:
- a
QMultiMapcontaining the specified mappings
-
ofTypedEntries
@SafeVarargs public static <Key,T> QMultiMap<Key,T> ofTypedEntries(Class<Key> keyType, Class<T> valueType, Map.Entry<? extends Key, ? extends T>... entries) Returns a QMultiMap containing keys and values extracted from the given entries. It is convenient to create the map entries using theMap.entry()method. For example,import static java.util.Map.entry; QMultiMap<Integer,String> map = QMultiMap.ofTypedEntries( int.class, String.class, entry(1, "a"), entry(2, "b"), entry(3, "c"), ... entry(26, "z"));- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typeentries-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
-
ofTypedEntries
@SafeVarargs public static <Key,T> QMultiMap<Key,T> ofTypedEntries(QMetaType keyType, QMetaType valueType, Map.Entry<? extends Key, ? extends T>... entries) Returns a QMultiMap containing keys and values extracted from the given entries. It is convenient to create the map entries using theMap.entry()method. For example,import static java.util.Map.entry; QMultiMap<Integer,String> map = QMultiMap.ofTypedEntries( QMetaType.fromType(int.class), QMetaType.fromType(String.class), entry(1, "a"), entry(2, "b"), entry(3, "c"), ... entry(26, "z"));- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
keyType- key typevalueType- value typeentries-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
-
ofPairs
@SafeVarargs public static <Key,T> QMultiMap<Key,T> ofPairs(QPair<? extends Key, ? extends T> pair0, QPair<? extends Key, ? extends T> ... pairs) Returns a QMultiMap containing keys and values extracted from the given pairs. It is convenient to create the pair using theQPair.pair(Object, Object)method. For example,import static java.util.QPair.pair; QMultiMap<Integer,String> map = QMultiMap.ofPairs( pair(1, "a"), pair(2, "b"), pair(3, "c"), ... pair(26, "z"));- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
pairs-QPairs containing the keys and values from which the map is populated- Returns:
- a
QMultiMapcontaining the specified mappings - Throws:
NullPointerException- if any pair, key, or value isnull, or if thepairsarray isnull
-
ofTypedPairs
@SafeVarargs public static <Key,T> QMultiMap<Key,T> ofTypedPairs(Class<Key> keyType, Class<T> valueType, QPair<? extends Key, ? extends T>... pairs) Returns a QMultiMap containing keys and values extracted from the given pairs. It is convenient to create the pair using theQPair.pair(Object, Object)method. For example,import static java.util.QPair.pair; QMultiMap<Integer,String> map = QMultiMap.ofTypedPairs( int.class, String.class, pair(1, "a"), pair(2, "b"), pair(3, "c"), ... pair(26, "z"));- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
pairs-QPairs containing the keys and values from which the map is populated- Returns:
- a
QMultiMapcontaining the specified mappings - Throws:
NullPointerException- if any pair, key, or value isnull, or if thepairsarray isnull
-
ofTypedPairs
@SafeVarargs public static <Key,T> QMultiMap<Key,T> ofTypedPairs(QMetaType keyType, QMetaType valueType, QPair<? extends Key, ? extends T>... pairs) Returns a QMultiMap containing keys and values extracted from the given pairs. It is convenient to create the pair using theQPair.pair(Object, Object)method. For example,import static java.util.QPair.pair; QMultiMap<Integer,String> map = QMultiMap.ofTypedPairs( QMetaType.fromType(int.class), QMetaType.fromType(String.class), pair(1, "a"), pair(2, "b"), pair(3, "c"), ... pair(26, "z"));- Type Parameters:
Key- theQMultiMap's key typeT- theQMultiMap's value type- Parameters:
pairs-QPairs containing the keys and values from which the map is populated- Returns:
- a
QMultiMapcontaining the specified mappings - Throws:
NullPointerException- if any pair, key, or value isnull, or if thepairsarray isnull
-
subMap
-
headMap
-
tailMap
-
lowerEntry
Returns a key-value mapping associated with the greatest key strictly less than the given key, ornullif there is no such key.- Specified by:
lowerEntryin interfaceNavigableMap<Key,T> - See Also:
-
lowerKey
Returns the greatest key strictly less than the given key, ornullif there is no such key.- Specified by:
lowerKeyin interfaceNavigableMap<Key,T> - See Also:
-
floorEntry
Returns a key-value mapping associated with the greatest key less than or equal to the given key, ornullif there is no such key.- Specified by:
floorEntryin interfaceNavigableMap<Key,T> - See Also:
-
floorKey
Returns the greatest key less than or equal to the given key, ornullif there is no such key.- Specified by:
floorKeyin interfaceNavigableMap<Key,T> - See Also:
-
ceilingEntry
Returns a key-value mapping associated with the least key greater than or equal to the given key, ornullif there is no such key.- Specified by:
ceilingEntryin interfaceNavigableMap<Key,T> - See Also:
-
ceilingKey
Returns the least key greater than or equal to the given key, ornullif there is no such key.- Specified by:
ceilingKeyin interfaceNavigableMap<Key,T> - See Also:
-
higherEntry
Returns a key-value mapping associated with the least key strictly greater than the given key, ornullif there is no such key.- Specified by:
higherEntryin interfaceNavigableMap<Key,T> - See Also:
-
higherKey
Returns the least key strictly greater than the given key, ornullif there is no such key.- Specified by:
higherKeyin interfaceNavigableMap<Key,T> - See Also:
-
firstEntry
Returns a key-value mapping associated with the least key in this map, ornullif the map is empty.- Specified by:
firstEntryin interfaceNavigableMap<Key,T> - Specified by:
firstEntryin interfaceSequencedMap<Key,T> - See Also:
-
lastEntry
Returns a key-value mapping associated with the greatest key in this map, ornullif the map is empty.- Specified by:
lastEntryin interfaceNavigableMap<Key,T> - Specified by:
lastEntryin interfaceSequencedMap<Key,T> - See Also:
-
pollFirstEntry
Removes and returns a key-value mapping associated with the least key in this map, ornullif the map is empty.- Specified by:
pollFirstEntryin interfaceNavigableMap<Key,T> - Specified by:
pollFirstEntryin interfaceSequencedMap<Key,T> - See Also:
-
pollLastEntry
Removes and returns a key-value mapping associated with the greatest key in this map, ornullif the map is empty.- Specified by:
pollLastEntryin interfaceNavigableMap<Key,T> - Specified by:
pollLastEntryin interfaceSequencedMap<Key,T> - See Also:
-
descendingMap
Returns a reverse order view of the mappings contained in this map.- Specified by:
descendingMapin interfaceNavigableMap<Key,T> - See Also:
-
descendingKeySet
Returns a reverse orderNavigableSetview of the keys contained in this map. The set's iterator returns the keys in descending order.- Specified by:
descendingKeySetin interfaceNavigableMap<Key,T> - See Also:
-
subMap
@QtUninvokable public final QMultiMap<Key,T> subMap(Key fromKey, boolean fromInclusive, Key toKey, boolean toInclusive) Returns a copy of the portion of this map whose keys range fromfromKeytotoKey. IffromKeyandtoKeyare equal, the returned map is empty unlessfromInclusiveandtoInclusiveare both true.- Specified by:
subMapin interfaceNavigableMap<Key,T>
-
headMap
Returns a copy of the portion of this map whose keys are less than (or equal to, ifinclusiveis true)toKey.- Specified by:
headMapin interfaceNavigableMap<Key,T>
-
tailMap
Returns a copy of the portion of this map whose keys are greater than (or equal to, ifinclusiveis true)fromKey.- Specified by:
tailMapin interfaceNavigableMap<Key,T>
-
assign
See
QMultiMap::operator=(QMultiMap<Key,T>) -
swap
See
QMultiMap::swap(QMultiMap<Key,T>&) -
isDetached
Returns true if container is not shared. -
detach
Detached the container if it is shared. -
keySet
-
entrySet
-
putAll
-
iterator
-