| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (14.0.2) on Thu Aug 20 21:25:36 CDT 2020 --> |
| <title>AbstractMutableBagMultimap (Eclipse Collections - 10.4.0)</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <meta name="dc.created" content="2020-08-20"> |
| <meta name="description" content="declaration: package: org.eclipse.collections.impl.multimap.bag, class: AbstractMutableBagMultimap"> |
| <meta name="generator" content="javadoc/ClassWriterImpl"> |
| <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../../script-dir/jquery-ui.css" title="Style"> |
| <script type="text/javascript" src="../../../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../../../script-dir/jszip/dist/jszip.min.js"></script> |
| <script type="text/javascript" src="../../../../../../script-dir/jszip-utils/dist/jszip-utils.min.js"></script> |
| <!--[if IE]> |
| <script type="text/javascript" src="../../../../../../script-dir/jszip-utils/dist/jszip-utils-ie.min.js"></script> |
| <![endif]--> |
| <script type="text/javascript" src="../../../../../../script-dir/jquery-3.4.1.js"></script> |
| <script type="text/javascript" src="../../../../../../script-dir/jquery-ui.js"></script> |
| </head> |
| <body class="class-declaration"> |
| <script type="text/javascript">var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| var pathtoroot = "../../../../../../"; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <div class="flexBox"> |
| <header role="banner" class="flexHeader"> |
| <nav role="navigation"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a id="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/AbstractMutableBagMultimap.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <div class="navListSearch"><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </div> |
| </div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <div class="skipNav"><a id="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| </nav> |
| </header> |
| <div class="flexContent"> |
| <main role="main"> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">org.eclipse.collections.impl.multimap.bag</a></div> |
| <h1 title="Class AbstractMutableBagMultimap" class="title">Class AbstractMutableBagMultimap<K,​V></h1> |
| </div> |
| <div class="contentContainer"> |
| <div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">java.lang.Object</a> |
| <div class="inheritance"><a href="../AbstractMultimap.html" title="class in org.eclipse.collections.impl.multimap">org.eclipse.collections.impl.multimap.AbstractMultimap</a><K,​V,​C> |
| <div class="inheritance"><a href="../AbstractMutableMultimap.html" title="class in org.eclipse.collections.impl.multimap">org.eclipse.collections.impl.multimap.AbstractMutableMultimap</a><K,​V,​<a href="../../../api/bag/MutableBag.html" title="interface in org.eclipse.collections.api.bag">MutableBag</a><V>> |
| <div class="inheritance">org.eclipse.collections.impl.multimap.bag.AbstractMutableBagMultimap<K,​V></div> |
| </div> |
| </div> |
| </div> |
| <section class="description"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><code><a href="../../../api/multimap/bag/BagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">BagMultimap</a><K,​V></code>, <code><a href="../../../api/multimap/bag/MutableBagIterableMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">MutableBagIterableMultimap</a><K,​V></code>, <code><a href="../../../api/multimap/bag/MutableBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">MutableBagMultimap</a><K,​V></code>, <code><a href="../../../api/multimap/bag/UnsortedBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">UnsortedBagMultimap</a><K,​V></code>, <code><a href="../../../api/multimap/Multimap.html" title="interface in org.eclipse.collections.api.multimap">Multimap</a><K,​V></code>, <code><a href="../../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a><K,​V></code></dd> |
| </dl> |
| <dl> |
| <dt>Direct Known Subclasses:</dt> |
| <dd><code><a href="HashBagMultimap.html" title="class in org.eclipse.collections.impl.multimap.bag">HashBagMultimap</a></code>, <code><a href="strategy/HashBagMultimapWithHashingStrategy.html" title="class in org.eclipse.collections.impl.multimap.bag.strategy">HashBagMultimapWithHashingStrategy</a></code>, <code><a href="MultiReaderHashBagMultimap.html" title="class in org.eclipse.collections.impl.multimap.bag">MultiReaderHashBagMultimap</a></code></dd> |
| </dl> |
| <hr> |
| <pre>public abstract class <span class="typeNameLabel">AbstractMutableBagMultimap<K,​V></span> |
| extends <a href="../AbstractMutableMultimap.html" title="class in org.eclipse.collections.impl.multimap">AbstractMutableMultimap</a><K,​V,​<a href="../../../api/bag/MutableBag.html" title="interface in org.eclipse.collections.api.bag">MutableBag</a><V>> |
| implements <a href="../../../api/multimap/bag/MutableBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">MutableBagMultimap</a><K,​V></pre> |
| </section> |
| <section class="summary"> |
| <ul class="blockList"> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <li class="blockList"> |
| <section class="methodSummary"><a id="method.summary"> |
| <!-- --> |
| </a> |
| <h2>Method Summary</h2> |
| <div class="memberSummary"> |
| <div role="tablist" aria-orientation="horizontal"><button role="tab" aria-selected="true" aria-controls="memberSummary_tabpanel" tabindex="0" onkeydown="switchTab(event)" id="t0" class="activeTableTab">All Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t2" class="tableTab" onclick="show(2);">Instance Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t4" class="tableTab" onclick="show(8);">Concrete Methods</button></div> |
| <div id="memberSummary_tabpanel" role="tabpanel"> |
| <table aria-labelledby="t0"> |
| <thead> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| </thead> |
| <tbody> |
| <tr class="altColor" id="i0"> |
| <td class="colFirst"><code><a href="../../../api/multimap/bag/MutableBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">MutableBagMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#asSynchronized()">asSynchronized</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a synchronized wrapper backed by this multimap.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i1"> |
| <td class="colFirst"><code><K2,​ |
| V2> <a href="HashBagMultimap.html" title="class in org.eclipse.collections.impl.multimap.bag">HashBagMultimap</a><K2,​V2></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectKeyMultiValues(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">collectKeyMultiValues</a></span>​(<a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super <a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​? extends K2> keyFunction, |
| <a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super <a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>,​? extends V2> valueFunction)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new multimap with the results of applying the specified keyFunction and valueFunction on each key and corresponding values of the source multimap.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i2"> |
| <td class="colFirst"><code><K2,​ |
| V2> <a href="HashBagMultimap.html" title="class in org.eclipse.collections.impl.multimap.bag">HashBagMultimap</a><K2,​V2></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectKeysValues(org.eclipse.collections.api.block.function.Function2)">collectKeysValues</a></span>​(<a href="../../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super <a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​? super <a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>,​<a href="../../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><K2,​V2>> function)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new multimap with the results of applying the specified function on each key and value of the source |
| multimap.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i3"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#putOccurrences(K,V,int)">putOccurrences</a></span>​(<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a> key, |
| <a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a> value, |
| int occurrences)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i4"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#readExternal(java.io.ObjectInput)">readExternal</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/ObjectInput.html?is-external=true" title="class or interface in java.io" class="externalLink">ObjectInput</a> in)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i5"> |
| <td class="colFirst"><code><a href="../../../api/multimap/bag/ImmutableBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">ImmutableBagMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toImmutable()">toImmutable</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns an immutable copy of this Multimap <em>if it is not already immutable</em>.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i6"> |
| <td class="colFirst"><code><a href="../../../api/multimap/bag/MutableBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">MutableBagMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toMutable()">toMutable</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a mutable <em>copy</em> of this Multimap.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i7"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#writeExternal(java.io.ObjectOutput)">writeExternal</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/ObjectOutput.html?is-external=true" title="class or interface in java.io" class="externalLink">ObjectOutput</a> out)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| </div> |
| <div class="inheritedList"> |
| <h3>Methods inherited from class org.eclipse.collections.impl.multimap.<a href="../AbstractMutableMultimap.html" title="class in org.eclipse.collections.impl.multimap">AbstractMutableMultimap</a></h3> |
| <a id="methods.inherited.from.class.org.eclipse.collections.impl.multimap.AbstractMutableMultimap"> |
| <!-- --> |
| </a><code><a href="../AbstractMutableMultimap.html#clear()">clear</a>, <a href="../AbstractMutableMultimap.html#get(K)">get</a>, <a href="../AbstractMutableMultimap.html#getIfAbsentPutAll(K,java.lang.Iterable)">getIfAbsentPutAll</a>, <a href="../AbstractMutableMultimap.html#isEmpty()">isEmpty</a>, <a href="../AbstractMutableMultimap.html#keySet()">keySet</a>, <a href="../AbstractMutableMultimap.html#put(K,V)">put</a>, <a href="../AbstractMutableMultimap.html#putAll(K,java.lang.Iterable)">putAll</a>, <a href="../AbstractMutableMultimap.html#putAll(org.eclipse.collections.api.multimap.Multimap)">putAll</a>, <a href="../AbstractMutableMultimap.html#remove(java.lang.Object,java.lang.Object)">remove</a>, <a href="../AbstractMutableMultimap.html#removeAll(java.lang.Object)">removeAll</a>, <a href="../AbstractMutableMultimap.html#replaceValues(K,java.lang.Iterable)">replaceValues</a>, <a href="../AbstractMutableMultimap.html#size()">size</a>, <a href="../AbstractMutableMultimap.html#sizeDistinct()">sizeDistinct</a>, <a href="../AbstractMutableMultimap.html#toMap()">toMap</a>, <a href="../AbstractMutableMultimap.html#toMap(org.eclipse.collections.api.block.function.Function0)">toMap</a></code></div> |
| <div class="inheritedList"> |
| <h3>Methods inherited from class org.eclipse.collections.impl.multimap.<a href="../AbstractMultimap.html" title="class in org.eclipse.collections.impl.multimap">AbstractMultimap</a></h3> |
| <a id="methods.inherited.from.class.org.eclipse.collections.impl.multimap.AbstractMultimap"> |
| <!-- --> |
| </a><code><a href="../AbstractMultimap.html#collectKeyMultiValues(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)">collectKeyMultiValues</a>, <a href="../AbstractMultimap.html#collectKeysValues(org.eclipse.collections.api.block.function.Function2,R)">collectKeysValues</a>, <a href="../AbstractMultimap.html#collectValues(org.eclipse.collections.api.block.function.Function,R)">collectValues</a>, <a href="../AbstractMultimap.html#containsKey(java.lang.Object)">containsKey</a>, <a href="../AbstractMultimap.html#containsKeyAndValue(java.lang.Object,java.lang.Object)">containsKeyAndValue</a>, <a href="../AbstractMultimap.html#containsValue(java.lang.Object)">containsValue</a>, <a href="../AbstractMultimap.html#equals(java.lang.Object)">equals</a>, <a href="../AbstractMultimap.html#forEachKey(org.eclipse.collections.api.block.procedure.Procedure)">forEachKey</a>, <a href="../AbstractMultimap.html#forEachKeyMultiValues(org.eclipse.collections.api.block.procedure.Procedure2)">forEachKeyMultiValues</a>, <a href="../AbstractMultimap.html#forEachKeyValue(org.eclipse.collections.api.block.procedure.Procedure2)">forEachKeyValue</a>, <a href="../AbstractMultimap.html#forEachValue(org.eclipse.collections.api.block.procedure.Procedure)">forEachValue</a>, <a href="../AbstractMultimap.html#hashCode()">hashCode</a>, <a href="../AbstractMultimap.html#keyBag()">keyBag</a>, <a href="../AbstractMultimap.html#keyMultiValuePairsView()">keyMultiValuePairsView</a>, <a href="../AbstractMultimap.html#keysView()">keysView</a>, <a href="../AbstractMultimap.html#keyValuePairsView()">keyValuePairsView</a>, <a href="../AbstractMultimap.html#multiValuesView()">multiValuesView</a>, <a href="../AbstractMultimap.html#notEmpty()">notEmpty</a>, <a href="../AbstractMultimap.html#rejectKeysMultiValues(org.eclipse.collections.api.block.predicate.Predicate2,R)">rejectKeysMultiValues</a>, <a href="../AbstractMultimap.html#rejectKeysValues(org.eclipse.collections.api.block.predicate.Predicate2,R)">rejectKeysValues</a>, <a href="../AbstractMultimap.html#selectKeysMultiValues(org.eclipse.collections.api.block.predicate.Predicate2,R)">selectKeysMultiValues</a>, <a href="../AbstractMultimap.html#selectKeysValues(org.eclipse.collections.api.block.predicate.Predicate2,R)">selectKeysValues</a>, <a href="../AbstractMultimap.html#toString()">toString</a>, <a href="../AbstractMultimap.html#valuesView()">valuesView</a></code></div> |
| <div class="inheritedList"> |
| <h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></h3> |
| <a id="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink">wait</a></code></div> |
| <div class="inheritedList"> |
| <h3>Methods inherited from interface org.eclipse.collections.api.multimap.<a href="../../../api/multimap/Multimap.html" title="interface in org.eclipse.collections.api.multimap">Multimap</a></h3> |
| <a id="methods.inherited.from.class.org.eclipse.collections.api.multimap.Multimap"> |
| <!-- --> |
| </a><code><a href="../../../api/multimap/Multimap.html#collectKeyMultiValues(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)">collectKeyMultiValues</a>, <a href="../../../api/multimap/Multimap.html#collectKeysValues(org.eclipse.collections.api.block.function.Function2,R)">collectKeysValues</a>, <a href="../../../api/multimap/Multimap.html#collectValues(org.eclipse.collections.api.block.function.Function,R)">collectValues</a>, <a href="../../../api/multimap/Multimap.html#containsKey(java.lang.Object)">containsKey</a>, <a href="../../../api/multimap/Multimap.html#containsKeyAndValue(java.lang.Object,java.lang.Object)">containsKeyAndValue</a>, <a href="../../../api/multimap/Multimap.html#containsValue(java.lang.Object)">containsValue</a>, <a href="../../../api/multimap/Multimap.html#equals(java.lang.Object)">equals</a>, <a href="../../../api/multimap/Multimap.html#forEachKey(org.eclipse.collections.api.block.procedure.Procedure)">forEachKey</a>, <a href="../../../api/multimap/Multimap.html#forEachKeyMultiValues(org.eclipse.collections.api.block.procedure.Procedure2)">forEachKeyMultiValues</a>, <a href="../../../api/multimap/Multimap.html#forEachKeyValue(org.eclipse.collections.api.block.procedure.Procedure2)">forEachKeyValue</a>, <a href="../../../api/multimap/Multimap.html#forEachValue(org.eclipse.collections.api.block.procedure.Procedure)">forEachValue</a>, <a href="../../../api/multimap/Multimap.html#hashCode()">hashCode</a>, <a href="../../../api/multimap/Multimap.html#isEmpty()">isEmpty</a>, <a href="../../../api/multimap/Multimap.html#keyBag()">keyBag</a>, <a href="../../../api/multimap/Multimap.html#keyMultiValuePairsView()">keyMultiValuePairsView</a>, <a href="../../../api/multimap/Multimap.html#keySet()">keySet</a>, <a href="../../../api/multimap/Multimap.html#keysView()">keysView</a>, <a href="../../../api/multimap/Multimap.html#keyValuePairsView()">keyValuePairsView</a>, <a href="../../../api/multimap/Multimap.html#multiValuesView()">multiValuesView</a>, <a href="../../../api/multimap/Multimap.html#notEmpty()">notEmpty</a>, <a href="../../../api/multimap/Multimap.html#rejectKeysMultiValues(org.eclipse.collections.api.block.predicate.Predicate2,R)">rejectKeysMultiValues</a>, <a href="../../../api/multimap/Multimap.html#rejectKeysValues(org.eclipse.collections.api.block.predicate.Predicate2,R)">rejectKeysValues</a>, <a href="../../../api/multimap/Multimap.html#selectKeysMultiValues(org.eclipse.collections.api.block.predicate.Predicate2,R)">selectKeysMultiValues</a>, <a href="../../../api/multimap/Multimap.html#selectKeysValues(org.eclipse.collections.api.block.predicate.Predicate2,R)">selectKeysValues</a>, <a href="../../../api/multimap/Multimap.html#size()">size</a>, <a href="../../../api/multimap/Multimap.html#sizeDistinct()">sizeDistinct</a>, <a href="../../../api/multimap/Multimap.html#toMap()">toMap</a>, <a href="../../../api/multimap/Multimap.html#toMap(org.eclipse.collections.api.block.function.Function0)">toMap</a>, <a href="../../../api/multimap/Multimap.html#valuesView()">valuesView</a></code></div> |
| <div class="inheritedList"> |
| <h3>Methods inherited from interface org.eclipse.collections.api.multimap.bag.<a href="../../../api/multimap/bag/MutableBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">MutableBagMultimap</a></h3> |
| <a id="methods.inherited.from.class.org.eclipse.collections.api.multimap.bag.MutableBagMultimap"> |
| <!-- --> |
| </a><code><a href="../../../api/multimap/bag/MutableBagMultimap.html#collectValues(org.eclipse.collections.api.block.function.Function)">collectValues</a>, <a href="../../../api/multimap/bag/MutableBagMultimap.html#flip()">flip</a>, <a href="../../../api/multimap/bag/MutableBagMultimap.html#get(K)">get</a>, <a href="../../../api/multimap/bag/MutableBagMultimap.html#getIfAbsentPutAll(K,java.lang.Iterable)">getIfAbsentPutAll</a>, <a href="../../../api/multimap/bag/MutableBagMultimap.html#newEmpty()">newEmpty</a>, <a href="../../../api/multimap/bag/MutableBagMultimap.html#rejectKeysMultiValues(org.eclipse.collections.api.block.predicate.Predicate2)">rejectKeysMultiValues</a>, <a href="../../../api/multimap/bag/MutableBagMultimap.html#rejectKeysValues(org.eclipse.collections.api.block.predicate.Predicate2)">rejectKeysValues</a>, <a href="../../../api/multimap/bag/MutableBagMultimap.html#removeAll(java.lang.Object)">removeAll</a>, <a href="../../../api/multimap/bag/MutableBagMultimap.html#replaceValues(K,java.lang.Iterable)">replaceValues</a>, <a href="../../../api/multimap/bag/MutableBagMultimap.html#selectKeysMultiValues(org.eclipse.collections.api.block.predicate.Predicate2)">selectKeysMultiValues</a>, <a href="../../../api/multimap/bag/MutableBagMultimap.html#selectKeysValues(org.eclipse.collections.api.block.predicate.Predicate2)">selectKeysValues</a></code></div> |
| <div class="inheritedList"> |
| <h3>Methods inherited from interface org.eclipse.collections.api.multimap.<a href="../../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a></h3> |
| <a id="methods.inherited.from.class.org.eclipse.collections.api.multimap.MutableMultimap"> |
| <!-- --> |
| </a><code><a href="../../../api/multimap/MutableMultimap.html#add(org.eclipse.collections.api.tuple.Pair)">add</a>, <a href="../../../api/multimap/MutableMultimap.html#clear()">clear</a>, <a href="../../../api/multimap/MutableMultimap.html#put(K,V)">put</a>, <a href="../../../api/multimap/MutableMultimap.html#putAll(K,java.lang.Iterable)">putAll</a>, <a href="../../../api/multimap/MutableMultimap.html#putAll(org.eclipse.collections.api.multimap.Multimap)">putAll</a>, <a href="../../../api/multimap/MutableMultimap.html#putAllPairs(java.lang.Iterable)">putAllPairs</a>, <a href="../../../api/multimap/MutableMultimap.html#putAllPairs(org.eclipse.collections.api.tuple.Pair...)">putAllPairs</a>, <a href="../../../api/multimap/MutableMultimap.html#remove(java.lang.Object,java.lang.Object)">remove</a></code></div> |
| </section> |
| </li> |
| </ul> |
| </section> |
| <section class="details"> |
| <ul class="blockList"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <li class="blockList"> |
| <section class="methodDetails"><a id="method.detail"> |
| <!-- --> |
| </a> |
| <h2>Method Details</h2> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toMutable()">toMutable</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../api/multimap/bag/MutableBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">MutableBagMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></span> <span class="memberName">toMutable</span>()</div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../api/multimap/Multimap.html#toMutable()">Multimap</a></code></span></div> |
| <div class="block">Returns a mutable <em>copy</em> of this Multimap.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../api/multimap/Multimap.html#toMutable()">toMutable</a></code> in interface <code><a href="../../../api/multimap/Multimap.html" title="interface in org.eclipse.collections.api.multimap">Multimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../api/multimap/bag/UnsortedBagMultimap.html#toMutable()">toMutable</a></code> in interface <code><a href="../../../api/multimap/bag/UnsortedBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">UnsortedBagMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toImmutable()">toImmutable</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../api/multimap/bag/ImmutableBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">ImmutableBagMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></span> <span class="memberName">toImmutable</span>()</div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../api/multimap/Multimap.html#toImmutable()">Multimap</a></code></span></div> |
| <div class="block">Returns an immutable copy of this Multimap <em>if it is not already immutable</em>. If the Multimap is immutable, |
| it will return itself. |
| <p> The returned Multimap will be <code>Serializable</code> if this Multimap is <code>Serializable</code>.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../api/multimap/Multimap.html#toImmutable()">toImmutable</a></code> in interface <code><a href="../../../api/multimap/Multimap.html" title="interface in org.eclipse.collections.api.multimap">Multimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../api/multimap/bag/UnsortedBagMultimap.html#toImmutable()">toImmutable</a></code> in interface <code><a href="../../../api/multimap/bag/UnsortedBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">UnsortedBagMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectKeysValues(org.eclipse.collections.api.block.function.Function2)">collectKeysValues</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="typeParameters"><K2,​ |
| V2></span> <span class="returnType"><a href="HashBagMultimap.html" title="class in org.eclipse.collections.impl.multimap.bag">HashBagMultimap</a><K2,​V2></span> <span class="memberName">collectKeysValues</span>​(<span class="arguments"><a href="../../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super <a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​? super <a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>,​<a href="../../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><K2,​V2>> function)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../api/multimap/Multimap.html#collectKeysValues(org.eclipse.collections.api.block.function.Function2)">Multimap</a></code></span></div> |
| <div class="block">Returns a new multimap with the results of applying the specified function on each key and value of the source |
| multimap. This method is also commonly called transform or map. |
| |
| <pre>e.g. |
| return multimap.collectKeysValues(new Function2<Integer, Person, Pair<String, String>>() |
| { |
| public Pair<String, String> valueOf(Integer age, Person person) |
| { |
| return Tuples.pair(age.toString(), person.getLastName()); |
| } |
| }); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../api/multimap/Multimap.html#collectKeysValues(org.eclipse.collections.api.block.function.Function2)">collectKeysValues</a></code> in interface <code><a href="../../../api/multimap/Multimap.html" title="interface in org.eclipse.collections.api.multimap">Multimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../api/multimap/bag/MutableBagIterableMultimap.html#collectKeysValues(org.eclipse.collections.api.block.function.Function2)">collectKeysValues</a></code> in interface <code><a href="../../../api/multimap/bag/MutableBagIterableMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">MutableBagIterableMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../api/multimap/bag/MutableBagMultimap.html#collectKeysValues(org.eclipse.collections.api.block.function.Function2)">collectKeysValues</a></code> in interface <code><a href="../../../api/multimap/bag/MutableBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">MutableBagMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../api/multimap/MutableMultimap.html#collectKeysValues(org.eclipse.collections.api.block.function.Function2)">collectKeysValues</a></code> in interface <code><a href="../../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../api/multimap/bag/UnsortedBagMultimap.html#collectKeysValues(org.eclipse.collections.api.block.function.Function2)">collectKeysValues</a></code> in interface <code><a href="../../../api/multimap/bag/UnsortedBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">UnsortedBagMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>function</code> - a <a href="../../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function"><code>Function2</code></a> to use for transformation</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><code>Multimap</code>, which contains elements as a result of the transformation</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectKeyMultiValues(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">collectKeyMultiValues</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="typeParameters"><K2,​ |
| V2></span> <span class="returnType"><a href="HashBagMultimap.html" title="class in org.eclipse.collections.impl.multimap.bag">HashBagMultimap</a><K2,​V2></span> <span class="memberName">collectKeyMultiValues</span>​(<span class="arguments"><a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super <a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​? extends K2> keyFunction, |
| <a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super <a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>,​? extends V2> valueFunction)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../api/multimap/Multimap.html#collectKeyMultiValues(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">Multimap</a></code></span></div> |
| <div class="block">Returns a new multimap with the results of applying the specified keyFunction and valueFunction on each key and corresponding values of the source multimap. |
| This method is also commonly called transform or map. |
| |
| <pre>e.g. |
| return multimap.collectKeyMultiValues(each -> each + 1, Person::getLastName); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../api/multimap/Multimap.html#collectKeyMultiValues(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">collectKeyMultiValues</a></code> in interface <code><a href="../../../api/multimap/Multimap.html" title="interface in org.eclipse.collections.api.multimap">Multimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../api/multimap/bag/MutableBagIterableMultimap.html#collectKeyMultiValues(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">collectKeyMultiValues</a></code> in interface <code><a href="../../../api/multimap/bag/MutableBagIterableMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">MutableBagIterableMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../api/multimap/bag/MutableBagMultimap.html#collectKeyMultiValues(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">collectKeyMultiValues</a></code> in interface <code><a href="../../../api/multimap/bag/MutableBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">MutableBagMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../api/multimap/MutableMultimap.html#collectKeyMultiValues(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">collectKeyMultiValues</a></code> in interface <code><a href="../../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../api/multimap/bag/UnsortedBagMultimap.html#collectKeyMultiValues(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">collectKeyMultiValues</a></code> in interface <code><a href="../../../api/multimap/bag/UnsortedBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">UnsortedBagMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>keyFunction</code> - <a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function"><code>Function</code></a> to use transformation to get the key</dd> |
| <dd><code>valueFunction</code> - <a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function"><code>Function</code></a> to use transformation to get the values</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a new <code>Multimap</code>, which contains elements as a result of the transformation</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="writeExternal(java.io.ObjectOutput)">writeExternal</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">writeExternal</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/io/ObjectOutput.html?is-external=true" title="class or interface in java.io" class="externalLink">ObjectOutput</a> out)</span> |
| throws <span class="exceptions"><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io" class="externalLink">IOException</a></span></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../AbstractMutableMultimap.html#writeExternal(java.io.ObjectOutput)">writeExternal</a></code> in class <code><a href="../AbstractMutableMultimap.html" title="class in org.eclipse.collections.impl.multimap">AbstractMutableMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>,​<a href="../../../api/bag/MutableBag.html" title="interface in org.eclipse.collections.api.bag">MutableBag</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>>></code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io" class="externalLink">IOException</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="readExternal(java.io.ObjectInput)">readExternal</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">readExternal</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/io/ObjectInput.html?is-external=true" title="class or interface in java.io" class="externalLink">ObjectInput</a> in)</span> |
| throws <span class="exceptions"><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io" class="externalLink">IOException</a>, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassNotFoundException.html?is-external=true" title="class or interface in java.lang" class="externalLink">ClassNotFoundException</a></span></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../AbstractMutableMultimap.html#readExternal(java.io.ObjectInput)">readExternal</a></code> in class <code><a href="../AbstractMutableMultimap.html" title="class in org.eclipse.collections.impl.multimap">AbstractMutableMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>,​<a href="../../../api/bag/MutableBag.html" title="interface in org.eclipse.collections.api.bag">MutableBag</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>>></code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io" class="externalLink">IOException</a></code></dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassNotFoundException.html?is-external=true" title="class or interface in java.lang" class="externalLink">ClassNotFoundException</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="putOccurrences(java.lang.Object,java.lang.Object,int)"> |
| <!-- --> |
| </a><a id="putOccurrences(K,V,int)">putOccurrences</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">putOccurrences</span>​(<span class="arguments"><a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a> key, |
| <a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a> value, |
| int occurrences)</span></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../api/multimap/bag/MutableBagMultimap.html#putOccurrences(K,V,int)">putOccurrences</a></code> in interface <code><a href="../../../api/multimap/bag/MutableBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">MutableBagMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="asSynchronized()">asSynchronized</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../api/multimap/bag/MutableBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">MutableBagMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></span> <span class="memberName">asSynchronized</span>()</div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../api/multimap/MutableMultimap.html#asSynchronized()">MutableMultimap</a></code></span></div> |
| <div class="block">Returns a synchronized wrapper backed by this multimap. |
| |
| The preferred way of iterating over a synchronized multimap is to use the forEachKey(), forEachValue(), |
| forEachKeyValue() and forEachKeyMultiValues methods which are properly synchronized internally. |
| <pre> |
| MutableMultimap synchedMultimap = multimap.asSynchronized(); |
| |
| synchedMultimap.forEachKey(key -> ... ); |
| synchedMultimap.forEachValue(value -> ... ); |
| synchedMultimap.forEachKeyValue((key, value) -> ... ); |
| synchedMultimap.forEachKeyMultiValues((key, values) -> ... ); |
| </pre> |
| <p> |
| If you want to iterate imperatively over the keySet(), keysView(), valuesView(), or other views, you will |
| need to protect the iteration by wrapping the code in a synchronized block on the multimap. |
| <p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../api/multimap/bag/MutableBagIterableMultimap.html#asSynchronized()">asSynchronized</a></code> in interface <code><a href="../../../api/multimap/bag/MutableBagIterableMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">MutableBagIterableMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../api/multimap/bag/MutableBagMultimap.html#asSynchronized()">asSynchronized</a></code> in interface <code><a href="../../../api/multimap/bag/MutableBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">MutableBagMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../api/multimap/MutableMultimap.html#asSynchronized()">asSynchronized</a></code> in interface <code><a href="../../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a><<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">K</a>,​<a href="AbstractMutableBagMultimap.html" title="type parameter in AbstractMutableBagMultimap">V</a>></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a synchronized view of this multimap.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../api/map/MutableMapIterable.html#asSynchronized()"><code>MutableMapIterable.asSynchronized()</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| </main> |
| <footer role="contentinfo"> |
| <nav role="navigation"> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a id="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/AbstractMutableBagMultimap.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| </div> |
| <a id="skip.navbar.bottom"> |
| <!-- --> |
| </a> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </nav> |
| <p class="legalCopy"><small>Copyright © 2004–2020. All rights reserved.</small></p> |
| </footer> |
| </div> |
| </div> |
| </body> |
| </html> |