| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (14.0.2) on Thu Aug 20 21:25:36 CDT 2020 --> |
| <title>MapIterate (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.utility, class: MapIterate"> |
| <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":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9,"i38":9,"i39":9,"i40":9,"i41":9,"i42":9,"i43":9,"i44":9,"i45":9,"i46":9,"i47":9,"i48":9,"i49":9,"i50":9,"i51":9,"i52":9,"i53":9,"i54":9,"i55":9,"i56":9,"i57":9,"i58":9,"i59":9,"i60":9,"i61":9,"i62":9,"i63":9,"i64":9,"i65":9,"i66":9,"i67":9}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static 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/MapIterate.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.utility</a></div> |
| <h1 title="Class MapIterate" class="title">Class MapIterate</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">org.eclipse.collections.impl.utility.MapIterate</div> |
| </div> |
| <section class="description"> |
| <hr> |
| <pre>public final class <span class="typeNameLabel">MapIterate</span> |
| extends <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></pre> |
| <div class="block">The MapIterate class provides a few of the methods from the Smalltalk Collection Protocol. This includes: |
| <ul> |
| <li>select: -- a.k.a. filter</li> |
| <li>reject: -- a.k.a. not-filter</li> |
| <li>collect: -- a.k.a. transform, map, tear-off</li> |
| <li>inject:into: -- closely related to reduce and fold</li> |
| <li>detect: -- a.k.a. find, search</li> |
| <li>detect:ifNone:</li> |
| <li>anySatisfy: -- a.k.a. exists</li> |
| <li>allSatisfy:</li> |
| </ul> |
| Since Maps have two data-points per entry (i.e. key and value), most of the implementations in this class |
| iterates over the values only, unless otherwise specified. |
| To iterate over the keys, use keySet() with standard <a href="Iterate.html" title="class in org.eclipse.collections.impl.utility"><code>Iterate</code></a> methods.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.0</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="Iterate.html" title="class in org.eclipse.collections.impl.utility"><code>Iterate</code></a></dd> |
| </dl> |
| </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="t1" class="tableTab" onclick="show(1);">Static 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>static <K,​ |
| V> <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><K></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addAllKeysTo(java.util.Map,java.util.Collection)">addAllKeysTo</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><K> targetCollection)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds all the <em>keys</em> from map to a the specified targetCollection.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i1"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><V></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addAllValuesTo(java.util.Map,java.util.Collection)">addAllValuesTo</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><V> targetCollection)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds all the <em>values</em> from map to a the specified targetCollection.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i2"> |
| <td class="colFirst"><code>static <K,​ |
| V> boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#allSatisfy(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate)">allSatisfy</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i3"> |
| <td class="colFirst"><code>static <K,​ |
| V> boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#anySatisfy(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate)">anySatisfy</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i4"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| A> <a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><A></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collect(java.util.Map,org.eclipse.collections.api.block.function.Function)">collect</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super V,​? extends A> function)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i5"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| A,​ |
| R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><A>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collect(java.util.Map,org.eclipse.collections.api.block.function.Function,R)">collect</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super V,​? extends A> function, |
| R targetCollection)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i6"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| K2,​ |
| V2><br><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K2,​V2></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collect(java.util.Map,org.eclipse.collections.api.block.function.Function2)">collect</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super K,​? super V,​<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">For each value of the map, the function is evaluated with the key and value as the parameter.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i7"> |
| <td class="colFirst"><code>static <K1,​ |
| V1,​ |
| K2,​ |
| V2><br><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K2,​V2></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collect(java.util.Map,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">collect</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K1,​V1> map, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super K1,​? extends K2> keyFunction, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super V1,​? extends V2> valueFunction)</code></th> |
| <td class="colLast"> |
| <div class="block">For each key-value entry of a map, applies a function to each, and adds the transformed entry to a new Map.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i8"> |
| <td class="colFirst"><code>static <K1,​ |
| V1,​ |
| K2,​ |
| V2><br><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K2,​V2></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collect(java.util.Map,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,java.util.Map)">collect</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K1,​V1> map, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super K1,​? extends K2> keyFunction, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super V1,​? extends V2> valueFunction, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K2,​V2> target)</code></th> |
| <td class="colLast"> |
| <div class="block">For each key-value entry of a map, applies a function to each, and adds the transformed entry to the target Map.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i9"> |
| <td class="colFirst"><code>static <K1,​ |
| V1,​ |
| K2,​ |
| V2,​ |
| R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K2,​ |
| V2>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collect(java.util.Map,org.eclipse.collections.api.block.function.Function2,R)">collect</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K1,​V1> map, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super K1,​? super V1,​<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><K2,​V2>> function, |
| R target)</code></th> |
| <td class="colLast"> |
| <div class="block">For each value of the map, the function is evaluated with the key and value as the parameter.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i10"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/collection/primitive/MutableBooleanCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableBooleanCollection</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectBoolean(java.util.Map,org.eclipse.collections.api.block.function.primitive.BooleanFunction)">collectBoolean</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/BooleanFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">BooleanFunction</a><? super V> booleanFunction)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i11"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| R extends <a href="../../api/collection/primitive/MutableBooleanCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableBooleanCollection</a>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectBoolean(java.util.Map,org.eclipse.collections.api.block.function.primitive.BooleanFunction,R)">collectBoolean</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/BooleanFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">BooleanFunction</a><? super V> booleanFunction, |
| R target)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i12"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/collection/primitive/MutableByteCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableByteCollection</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectByte(java.util.Map,org.eclipse.collections.api.block.function.primitive.ByteFunction)">collectByte</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/ByteFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ByteFunction</a><? super V> byteFunction)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i13"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| R extends <a href="../../api/collection/primitive/MutableByteCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableByteCollection</a>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectByte(java.util.Map,org.eclipse.collections.api.block.function.primitive.ByteFunction,R)">collectByte</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/ByteFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ByteFunction</a><? super V> byteFunction, |
| R target)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i14"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/collection/primitive/MutableCharCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableCharCollection</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectChar(java.util.Map,org.eclipse.collections.api.block.function.primitive.CharFunction)">collectChar</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/CharFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">CharFunction</a><? super V> charFunction)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i15"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| R extends <a href="../../api/collection/primitive/MutableCharCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableCharCollection</a>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectChar(java.util.Map,org.eclipse.collections.api.block.function.primitive.CharFunction,R)">collectChar</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/CharFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">CharFunction</a><? super V> charFunction, |
| R target)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i16"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/collection/primitive/MutableDoubleCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableDoubleCollection</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectDouble(java.util.Map,org.eclipse.collections.api.block.function.primitive.DoubleFunction)">collectDouble</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a><? super V> doubleFunction)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i17"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| R extends <a href="../../api/collection/primitive/MutableDoubleCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableDoubleCollection</a>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectDouble(java.util.Map,org.eclipse.collections.api.block.function.primitive.DoubleFunction,R)">collectDouble</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a><? super V> doubleFunction, |
| R target)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i18"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/collection/primitive/MutableFloatCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableFloatCollection</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectFloat(java.util.Map,org.eclipse.collections.api.block.function.primitive.FloatFunction)">collectFloat</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a><? super V> floatFunction)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i19"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| R extends <a href="../../api/collection/primitive/MutableFloatCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableFloatCollection</a>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectFloat(java.util.Map,org.eclipse.collections.api.block.function.primitive.FloatFunction,R)">collectFloat</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a><? super V> floatFunction, |
| R target)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i20"> |
| <td class="colFirst"><code>static <K1,​ |
| V1,​ |
| K2,​ |
| V2><br><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K2,​V2></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectIf(java.util.Map,org.eclipse.collections.api.block.function.Function2,org.eclipse.collections.api.block.predicate.Predicate2)">collectIf</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K1,​V1> map, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super K1,​? super V1,​<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><K2,​V2>> function, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super K1,​? super V1> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">For each value of the map, the Predicate2 is evaluated with the key and value as the parameter, |
| and if true, then <code>function</code> is applied.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i21"> |
| <td class="colFirst"><code>static <K1,​ |
| V1,​ |
| K2,​ |
| V2><br><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K2,​V2></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectIf(java.util.Map,org.eclipse.collections.api.block.function.Function2,org.eclipse.collections.api.block.predicate.Predicate2,java.util.Map)">collectIf</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K1,​V1> map, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super K1,​? super V1,​<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><K2,​V2>> function, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super K1,​? super V1> predicate, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K2,​V2> target)</code></th> |
| <td class="colLast"> |
| <div class="block">For each value of the map, the Predicate2 is evaluated with the key and value as the parameter, |
| and if true, then <code>function</code> is applied.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i22"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/collection/primitive/MutableIntCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableIntCollection</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectInt(java.util.Map,org.eclipse.collections.api.block.function.primitive.IntFunction)">collectInt</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a><? super V> intFunction)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i23"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| R extends <a href="../../api/collection/primitive/MutableIntCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableIntCollection</a>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectInt(java.util.Map,org.eclipse.collections.api.block.function.primitive.IntFunction,R)">collectInt</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a><? super V> intFunction, |
| R target)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i24"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/collection/primitive/MutableLongCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableLongCollection</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectLong(java.util.Map,org.eclipse.collections.api.block.function.primitive.LongFunction)">collectLong</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a><? super V> longFunction)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i25"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| R extends <a href="../../api/collection/primitive/MutableLongCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableLongCollection</a>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectLong(java.util.Map,org.eclipse.collections.api.block.function.primitive.LongFunction,R)">collectLong</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a><? super V> longFunction, |
| R target)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i26"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/collection/primitive/MutableShortCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableShortCollection</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectShort(java.util.Map,org.eclipse.collections.api.block.function.primitive.ShortFunction)">collectShort</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/ShortFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ShortFunction</a><? super V> shortFunction)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i27"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| R extends <a href="../../api/collection/primitive/MutableShortCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableShortCollection</a>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectShort(java.util.Map,org.eclipse.collections.api.block.function.primitive.ShortFunction,R)">collectShort</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/ShortFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ShortFunction</a><? super V> shortFunction, |
| R target)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i28"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| V2> <a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K,​V2></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectValues(java.util.Map,org.eclipse.collections.api.block.function.Function2)">collectValues</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super K,​? super V,​? extends V2> function)</code></th> |
| <td class="colLast"> |
| <div class="block">For each key and value of the map, the function is evaluated with the key and value as the parameter.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i29"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| V2,​ |
| R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​ |
| V2>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectValues(java.util.Map,org.eclipse.collections.api.block.function.Function2,R)">collectValues</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super K,​? super V,​? extends V2> function, |
| R target)</code></th> |
| <td class="colLast"> |
| <div class="block">For each key and value of the map, the function is evaluated with the key and value as the parameter.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i30"> |
| <td class="colFirst"><code>static <K,​ |
| V> int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#count(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate)">count</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i31"> |
| <td class="colFirst"><code>static <K,​ |
| V> V</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#detect(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate)">detect</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i32"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><K,​V></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#detect(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate2)">detect</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super K,​? super V> predicate)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i33"> |
| <td class="colFirst"><code>static <K,​ |
| V> V</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#detectIfNone(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate,V)">detectIfNone</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate, |
| V ifNone)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i34"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util" class="externalLink">Optional</a><V></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#detectOptional(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate)">detectOptional</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i35"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util" class="externalLink">Optional</a><<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><K,​V>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#detectOptional(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate2)">detectOptional</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super K,​? super V> predicate)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i36"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/multimap/set/MutableSetMultimap.html" title="interface in org.eclipse.collections.api.multimap.set">MutableSetMultimap</a><V,​K></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#flip(org.eclipse.collections.api.map.MapIterable)">flip</a></span>​(<a href="../../api/map/MapIterable.html" title="interface in org.eclipse.collections.api.map">MapIterable</a><K,​V> iMap)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i37"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/multimap/sortedset/MutableSortedSetMultimap.html" title="interface in org.eclipse.collections.api.multimap.sortedset">MutableSortedSetMultimap</a><V,​K></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#flip(org.eclipse.collections.api.map.sorted.SortedMapIterable)">flip</a></span>​(<a href="../../api/map/sorted/SortedMapIterable.html" title="interface in org.eclipse.collections.api.map.sorted">SortedMapIterable</a><K,​V> iMap)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i38"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><V,​K></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#flipUniqueValues(org.eclipse.collections.api.map.MapIterable)">flipUniqueValues</a></span>​(<a href="../../api/map/MapIterable.html" title="interface in org.eclipse.collections.api.map">MapIterable</a><K,​V> mapIterable)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i39"> |
| <td class="colFirst"><code>static <K,​ |
| V> void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#forEachKey(java.util.Map,org.eclipse.collections.api.block.procedure.Procedure)">forEachKey</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/procedure/Procedure.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure</a><? super K> procedure)</code></th> |
| <td class="colLast"> |
| <div class="block">For each key of the map, <code>procedure</code> is evaluated with the key as the parameter.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i40"> |
| <td class="colFirst"><code>static <K,​ |
| V> void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#forEachKeyValue(java.util.Map,org.eclipse.collections.api.block.procedure.Procedure2)">forEachKeyValue</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/procedure/Procedure2.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure2</a><? super K,​? super V> procedure)</code></th> |
| <td class="colLast"> |
| <div class="block">For each entry of the map, <code>procedure</code> is evaluated with the element as the parameter.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i41"> |
| <td class="colFirst"><code>static <K,​ |
| V> void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#forEachValue(java.util.Map,org.eclipse.collections.api.block.procedure.Procedure)">forEachValue</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/procedure/Procedure.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure</a><? super V> procedure)</code></th> |
| <td class="colLast"> |
| <div class="block">For each value of the map, <code>procedure</code> is evaluated with the value as the parameter.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i42"> |
| <td class="colFirst"><code>static <K,​ |
| V> V</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getIfAbsent(java.util.Map,K,org.eclipse.collections.api.block.function.Function0)">getIfAbsent</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| K key, |
| <a href="../../api/block/function/Function0.html" title="interface in org.eclipse.collections.api.block.function">Function0</a><? extends V> instanceBlock)</code></th> |
| <td class="colLast"> |
| <div class="block">Get and return the value in the Map that corresponds to the specified key, or if there is no value |
| at the key, return the result of evaluating the specified <a href="../../api/block/function/Function0.html" title="interface in org.eclipse.collections.api.block.function"><code>Function0</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i43"> |
| <td class="colFirst"><code>static <K,​ |
| V> V</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getIfAbsentDefault(java.util.Map,K,V)">getIfAbsentDefault</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| K key, |
| V defaultValue)</code></th> |
| <td class="colLast"> |
| <div class="block">Get and return the value in the Map at the specified key, or if there is no value at the key, return the |
| <code>defaultValue</code>.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i44"> |
| <td class="colFirst"><code>static <K,​ |
| V> V</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getIfAbsentPut(java.util.Map,K,org.eclipse.collections.api.block.function.Function0)">getIfAbsentPut</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| K key, |
| <a href="../../api/block/function/Function0.html" title="interface in org.eclipse.collections.api.block.function">Function0</a><? extends V> instanceBlock)</code></th> |
| <td class="colLast"> |
| <div class="block">Get and return the value in the Map at the specified key, or if there is no value at the key, return the result |
| of evaluating the specified <a href="../../api/block/function/Function0.html" title="interface in org.eclipse.collections.api.block.function"><code>Function0</code></a>, and put that value in the map at the specified key.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i45"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| P> V</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getIfAbsentPutWith(java.util.Map,K,org.eclipse.collections.api.block.function.Function,P)">getIfAbsentPutWith</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| K key, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super P,​? extends V> function, |
| P parameter)</code></th> |
| <td class="colLast"> |
| <div class="block">Get and return the value in the Map at the specified key, or if there is no value at the key, return the result |
| of evaluating the specified <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function"><code>Function</code></a> with the <code>parameter</code>, and put that value in the map at |
| the specified key.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i46"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| P> V</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getIfAbsentWith(java.util.Map,K,org.eclipse.collections.api.block.function.Function,P)">getIfAbsentWith</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| K key, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super P,​? extends V> function, |
| P parameter)</code></th> |
| <td class="colLast"> |
| <div class="block">Get and return the value in the Map that corresponds to the specified key, or if there is no value |
| at the key, return the result of evaluating the specified <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function"><code>Function</code></a> with the specified parameter.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i47"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| A> A</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ifPresentApply(java.util.Map,K,org.eclipse.collections.api.block.function.Function)">ifPresentApply</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| K key, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super V,​? extends A> function)</code></th> |
| <td class="colLast"> |
| <div class="block">If there is a value in the Map tat the specified key, return the result of applying the specified Function |
| on the value, otherwise return null.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i48"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| IV> IV</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#injectInto(IV,java.util.Map,org.eclipse.collections.api.block.function.Function2)">injectInto</a></span>​(IV injectValue, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super IV,​? super V,​? extends IV> function)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i49"> |
| <td class="colFirst"><code>static <IV,​ |
| K,​ |
| V> IV</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#injectIntoIf(IV,java.util.Map,org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function2)">injectIntoIf</a></span>​(IV initialValue, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super IV,​? super V,​? extends IV> function)</code></th> |
| <td class="colLast"> |
| <div class="block">Same as <a href="#injectInto(IV,java.util.Map,org.eclipse.collections.api.block.function.Function2)"><code>injectInto(Object, Map, Function2)</code></a>, but only applies the value to the function |
| if the predicate returns true for the value.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i50"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isEmpty(java.util.Map)">isEmpty</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><?,​?> map)</code></th> |
| <td class="colLast"> |
| <div class="block">A null-safe check on a map to see if it isEmpty.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i51"> |
| <td class="colFirst"><code>static <K,​ |
| V> boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#noneSatisfy(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate)">noneSatisfy</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i52"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#notEmpty(java.util.Map)">notEmpty</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><?,​?> map)</code></th> |
| <td class="colLast"> |
| <div class="block">A null-safe check on a map to see if it notEmpty.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i53"> |
| <td class="colFirst"><code>static <K,​ |
| V> int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#occurrencesOf(java.util.Map,V)">occurrencesOf</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| V object)</code></th> |
| <td class="colLast"> |
| <div class="block">Return the number of occurrences of object in the specified map.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i54"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| A> int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#occurrencesOfAttribute(java.util.Map,org.eclipse.collections.api.block.function.Function,A)">occurrencesOfAttribute</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super V,​? extends A> function, |
| A object)</code></th> |
| <td class="colLast"> |
| <div class="block">Return the number of occurrences where object is equal to the specified attribute in the specified map.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i55"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><V></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reject(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate)">reject</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i56"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><V>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reject(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate,R)">reject</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate, |
| R targetCollection)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i57"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K,​V></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#rejectMapOnEntry(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate2)">rejectMapOnEntry</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super K,​? super V> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">For each <em>value</em> of the map, predicate is evaluated with the element as the parameter.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i58"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​ |
| V>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#rejectMapOnEntry(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate2,R)">rejectMapOnEntry</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super K,​? super V> predicate, |
| R target)</code></th> |
| <td class="colLast"> |
| <div class="block">For each <em>value</em> of the map, predicate is evaluated with the element as the parameter.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i59"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><V,​K></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reverseMapping(java.util.Map)">reverseMapping</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map)</code></th> |
| <td class="colLast"> |
| <div class="block">Return a new map swapping key-value for value-key.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i60"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><V></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#select(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate)">select</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i61"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><V>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#select(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate,R)">select</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate, |
| R targetCollection)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i62"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K,​V></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#selectMapOnEntry(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate2)">selectMapOnEntry</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super K,​? super V> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">For each <em>entry</em> of the source map, the Predicate2 is evaluated.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i63"> |
| <td class="colFirst"><code>static <K,​ |
| V,​ |
| R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​ |
| V>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#selectMapOnEntry(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate2,R)">selectMapOnEntry</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super K,​? super V> predicate, |
| R target)</code></th> |
| <td class="colLast"> |
| <div class="block">For each <em>entry</em> of the source map, the Predicate2 is evaluated.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i64"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K,​V></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#selectMapOnKey(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate)">selectMapOnKey</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super K> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">For each <em>key</em> of the source map, the Predicate is evaluated.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i65"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K,​V></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#selectMapOnValue(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate)">selectMapOnValue</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">For each <em>value</em> of the source map, the Predicate is evaluated.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i66"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><K,​V>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toListOfPairs(java.util.Map)">toListOfPairs</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map)</code></th> |
| <td class="colLast"> |
| <div class="block">Iterate over the specified map applying the specified Function to each value |
| and return the results as a List.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i67"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><V></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toSortedList(java.util.Map,java.util.Comparator)">toSortedList</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a><? super V> comparator)</code></th> |
| <td class="colLast"> |
| <div class="block">Iterate over the specified map applying the specified Function to each value |
| and return the results as a sorted List using the specified Comparator.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| </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#equals(java.lang.Object)" title="class or interface in java.lang" class="externalLink">equals</a>, <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#hashCode()" title="class or interface in java.lang" class="externalLink">hashCode</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#toString()" title="class or interface in java.lang" class="externalLink">toString</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> |
| </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="isEmpty(java.util.Map)">isEmpty</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="returnType">boolean</span> <span class="memberName">isEmpty</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><?,​?> map)</span></div> |
| <div class="block">A null-safe check on a map to see if it isEmpty. A null collection results in <code>true</code>.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="notEmpty(java.util.Map)">notEmpty</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="returnType">boolean</span> <span class="memberName">notEmpty</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><?,​?> map)</span></div> |
| <div class="block">A null-safe check on a map to see if it notEmpty. A null collection results in <code>false</code>.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="getIfAbsentPut(java.util.Map,java.lang.Object,org.eclipse.collections.api.block.function.Function0)"> |
| <!-- --> |
| </a><a id="getIfAbsentPut(java.util.Map,K,org.eclipse.collections.api.block.function.Function0)">getIfAbsentPut</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType">V</span> <span class="memberName">getIfAbsentPut</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| K key, |
| <a href="../../api/block/function/Function0.html" title="interface in org.eclipse.collections.api.block.function">Function0</a><? extends V> instanceBlock)</span></div> |
| <div class="block">Get and return the value in the Map at the specified key, or if there is no value at the key, return the result |
| of evaluating the specified <a href="../../api/block/function/Function0.html" title="interface in org.eclipse.collections.api.block.function"><code>Function0</code></a>, and put that value in the map at the specified key. |
| <p> |
| This method handles the <code>null</code>-value-at-key case correctly.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="getIfAbsentPutWith(java.util.Map,java.lang.Object,org.eclipse.collections.api.block.function.Function,java.lang.Object)"> |
| <!-- --> |
| </a><a id="getIfAbsentPutWith(java.util.Map,K,org.eclipse.collections.api.block.function.Function,P)">getIfAbsentPutWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| P></span> <span class="returnType">V</span> <span class="memberName">getIfAbsentPutWith</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| K key, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super P,​? extends V> function, |
| P parameter)</span></div> |
| <div class="block">Get and return the value in the Map at the specified key, or if there is no value at the key, return the result |
| of evaluating the specified <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function"><code>Function</code></a> with the <code>parameter</code>, and put that value in the map at |
| the specified key.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="getIfAbsent(java.util.Map,java.lang.Object,org.eclipse.collections.api.block.function.Function0)"> |
| <!-- --> |
| </a><a id="getIfAbsent(java.util.Map,K,org.eclipse.collections.api.block.function.Function0)">getIfAbsent</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType">V</span> <span class="memberName">getIfAbsent</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| K key, |
| <a href="../../api/block/function/Function0.html" title="interface in org.eclipse.collections.api.block.function">Function0</a><? extends V> instanceBlock)</span></div> |
| <div class="block">Get and return the value in the Map that corresponds to the specified key, or if there is no value |
| at the key, return the result of evaluating the specified <a href="../../api/block/function/Function0.html" title="interface in org.eclipse.collections.api.block.function"><code>Function0</code></a>.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="getIfAbsentWith(java.util.Map,java.lang.Object,org.eclipse.collections.api.block.function.Function,java.lang.Object)"> |
| <!-- --> |
| </a><a id="getIfAbsentWith(java.util.Map,K,org.eclipse.collections.api.block.function.Function,P)">getIfAbsentWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| P></span> <span class="returnType">V</span> <span class="memberName">getIfAbsentWith</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| K key, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super P,​? extends V> function, |
| P parameter)</span></div> |
| <div class="block">Get and return the value in the Map that corresponds to the specified key, or if there is no value |
| at the key, return the result of evaluating the specified <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function"><code>Function</code></a> with the specified parameter.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="getIfAbsentDefault(java.util.Map,java.lang.Object,java.lang.Object)"> |
| <!-- --> |
| </a><a id="getIfAbsentDefault(java.util.Map,K,V)">getIfAbsentDefault</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType">V</span> <span class="memberName">getIfAbsentDefault</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| K key, |
| V defaultValue)</span></div> |
| <div class="block">Get and return the value in the Map at the specified key, or if there is no value at the key, return the |
| <code>defaultValue</code>.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="ifPresentApply(java.util.Map,java.lang.Object,org.eclipse.collections.api.block.function.Function)"> |
| <!-- --> |
| </a><a id="ifPresentApply(java.util.Map,K,org.eclipse.collections.api.block.function.Function)">ifPresentApply</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| A></span> <span class="returnType">A</span> <span class="memberName">ifPresentApply</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| K key, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super V,​? extends A> function)</span></div> |
| <div class="block">If there is a value in the Map tat the specified key, return the result of applying the specified Function |
| on the value, otherwise return null.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="select(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate)">select</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><V></span> <span class="memberName">select</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="Iterate.html#select(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)"><code>Iterate.select(Iterable, Predicate)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="select(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate,java.util.Collection)"> |
| <!-- --> |
| </a><a id="select(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate,R)">select</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><V>></span> <span class="returnType">R</span> <span class="memberName">select</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate, |
| R targetCollection)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="Iterate.html#select(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate,R)"><code>Iterate.select(Iterable, Predicate, Collection)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="count(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate)">count</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType">int</span> <span class="memberName">count</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="Iterate.html#count(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)"><code>Iterate.count(Iterable, Predicate)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="selectMapOnEntry(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate2)">selectMapOnEntry</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K,​V></span> <span class="memberName">selectMapOnEntry</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super K,​? super V> predicate)</span></div> |
| <div class="block">For each <em>entry</em> of the source map, the Predicate2 is evaluated. |
| If the result of the evaluation is true, the map entry is moved to a result map. |
| The result map is returned containing all entries in the source map that evaluated to true.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="selectMapOnEntry(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate2,java.util.Map)"> |
| <!-- --> |
| </a><a id="selectMapOnEntry(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate2,R)">selectMapOnEntry</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​ |
| V>></span> <span class="returnType">R</span> <span class="memberName">selectMapOnEntry</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super K,​? super V> predicate, |
| R target)</span></div> |
| <div class="block">For each <em>entry</em> of the source map, the Predicate2 is evaluated. |
| If the result of the evaluation is true, the map entry is moved to a result map. |
| The result map is returned containing all entries in the source map that evaluated to true.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="selectMapOnKey(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate)">selectMapOnKey</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K,​V></span> <span class="memberName">selectMapOnKey</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super K> predicate)</span></div> |
| <div class="block">For each <em>key</em> of the source map, the Predicate is evaluated. |
| If the result of the evaluation is true, the map entry is moved to a result map. |
| The result map is returned containing all entries in the source map that evaluated to true.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="selectMapOnValue(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate)">selectMapOnValue</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K,​V></span> <span class="memberName">selectMapOnValue</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate)</span></div> |
| <div class="block">For each <em>value</em> of the source map, the Predicate is evaluated. |
| If the result of the evaluation is true, the map entry is moved to a result map. |
| The result map is returned containing all entries in the source map that evaluated to true.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="reject(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate)">reject</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><V></span> <span class="memberName">reject</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="Iterate.html#reject(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)"><code>Iterate.reject(Iterable, Predicate)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="reject(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate,java.util.Collection)"> |
| <!-- --> |
| </a><a id="reject(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate,R)">reject</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><V>></span> <span class="returnType">R</span> <span class="memberName">reject</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate, |
| R targetCollection)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="Iterate.html#reject(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate,R)"><code>Iterate.reject(Iterable, Predicate, Collection)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="rejectMapOnEntry(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate2)">rejectMapOnEntry</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K,​V></span> <span class="memberName">rejectMapOnEntry</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super K,​? super V> predicate)</span></div> |
| <div class="block">For each <em>value</em> of the map, predicate is evaluated with the element as the parameter. |
| Each element which causes predicate to evaluate to false is included in the new collection.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="rejectMapOnEntry(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate2,java.util.Map)"> |
| <!-- --> |
| </a><a id="rejectMapOnEntry(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate2,R)">rejectMapOnEntry</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​ |
| V>></span> <span class="returnType">R</span> <span class="memberName">rejectMapOnEntry</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super K,​? super V> predicate, |
| R target)</span></div> |
| <div class="block">For each <em>value</em> of the map, predicate is evaluated with the element as the parameter. |
| Each element which causes predicate to evaluate to false is added to the targetCollection.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="addAllKeysTo(java.util.Map,java.util.Collection)">addAllKeysTo</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><K></span> <span class="memberName">addAllKeysTo</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><K> targetCollection)</span></div> |
| <div class="block">Adds all the <em>keys</em> from map to a the specified targetCollection.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="addAllValuesTo(java.util.Map,java.util.Collection)">addAllValuesTo</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><V></span> <span class="memberName">addAllValuesTo</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><V> targetCollection)</span></div> |
| <div class="block">Adds all the <em>values</em> from map to a the specified targetCollection.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collect(java.util.Map,org.eclipse.collections.api.block.function.Function)">collect</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| A></span> <span class="returnType"><a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><A></span> <span class="memberName">collect</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super V,​? extends A> function)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="Iterate.html#collect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)"><code>Iterate.collect(Iterable, Function)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectBoolean(java.util.Map,org.eclipse.collections.api.block.function.primitive.BooleanFunction)">collectBoolean</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/collection/primitive/MutableBooleanCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableBooleanCollection</a></span> <span class="memberName">collectBoolean</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/BooleanFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">BooleanFunction</a><? super V> booleanFunction)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction)"><code>RichIterable.collectBoolean(BooleanFunction)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectBoolean(java.util.Map,org.eclipse.collections.api.block.function.primitive.BooleanFunction,org.eclipse.collections.api.collection.primitive.MutableBooleanCollection)"> |
| <!-- --> |
| </a><a id="collectBoolean(java.util.Map,org.eclipse.collections.api.block.function.primitive.BooleanFunction,R)">collectBoolean</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| R extends <a href="../../api/collection/primitive/MutableBooleanCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableBooleanCollection</a>></span> |
| <span class="returnType">R</span> <span class="memberName">collectBoolean</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/BooleanFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">BooleanFunction</a><? super V> booleanFunction, |
| R target)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction,R)"><code>RichIterable.collectBoolean(BooleanFunction, MutableBooleanCollection)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectByte(java.util.Map,org.eclipse.collections.api.block.function.primitive.ByteFunction)">collectByte</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/collection/primitive/MutableByteCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableByteCollection</a></span> <span class="memberName">collectByte</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/ByteFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ByteFunction</a><? super V> byteFunction)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction)"><code>RichIterable.collectByte(ByteFunction)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectByte(java.util.Map,org.eclipse.collections.api.block.function.primitive.ByteFunction,org.eclipse.collections.api.collection.primitive.MutableByteCollection)"> |
| <!-- --> |
| </a><a id="collectByte(java.util.Map,org.eclipse.collections.api.block.function.primitive.ByteFunction,R)">collectByte</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| R extends <a href="../../api/collection/primitive/MutableByteCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableByteCollection</a>></span> |
| <span class="returnType">R</span> <span class="memberName">collectByte</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/ByteFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ByteFunction</a><? super V> byteFunction, |
| R target)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction,R)"><code>RichIterable.collectByte(ByteFunction, MutableByteCollection)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectChar(java.util.Map,org.eclipse.collections.api.block.function.primitive.CharFunction)">collectChar</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/collection/primitive/MutableCharCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableCharCollection</a></span> <span class="memberName">collectChar</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/CharFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">CharFunction</a><? super V> charFunction)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction)"><code>RichIterable.collectChar(CharFunction)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectChar(java.util.Map,org.eclipse.collections.api.block.function.primitive.CharFunction,org.eclipse.collections.api.collection.primitive.MutableCharCollection)"> |
| <!-- --> |
| </a><a id="collectChar(java.util.Map,org.eclipse.collections.api.block.function.primitive.CharFunction,R)">collectChar</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| R extends <a href="../../api/collection/primitive/MutableCharCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableCharCollection</a>></span> |
| <span class="returnType">R</span> <span class="memberName">collectChar</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/CharFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">CharFunction</a><? super V> charFunction, |
| R target)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction,R)"><code>RichIterable.collectChar(CharFunction, MutableCharCollection)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectDouble(java.util.Map,org.eclipse.collections.api.block.function.primitive.DoubleFunction)">collectDouble</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/collection/primitive/MutableDoubleCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableDoubleCollection</a></span> <span class="memberName">collectDouble</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a><? super V> doubleFunction)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction)"><code>RichIterable.collectDouble(DoubleFunction)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectDouble(java.util.Map,org.eclipse.collections.api.block.function.primitive.DoubleFunction,org.eclipse.collections.api.collection.primitive.MutableDoubleCollection)"> |
| <!-- --> |
| </a><a id="collectDouble(java.util.Map,org.eclipse.collections.api.block.function.primitive.DoubleFunction,R)">collectDouble</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| R extends <a href="../../api/collection/primitive/MutableDoubleCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableDoubleCollection</a>></span> |
| <span class="returnType">R</span> <span class="memberName">collectDouble</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a><? super V> doubleFunction, |
| R target)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction,R)"><code>RichIterable.collectDouble(DoubleFunction, MutableDoubleCollection)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectFloat(java.util.Map,org.eclipse.collections.api.block.function.primitive.FloatFunction)">collectFloat</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/collection/primitive/MutableFloatCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableFloatCollection</a></span> <span class="memberName">collectFloat</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a><? super V> floatFunction)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction)"><code>RichIterable.collectFloat(FloatFunction)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectFloat(java.util.Map,org.eclipse.collections.api.block.function.primitive.FloatFunction,org.eclipse.collections.api.collection.primitive.MutableFloatCollection)"> |
| <!-- --> |
| </a><a id="collectFloat(java.util.Map,org.eclipse.collections.api.block.function.primitive.FloatFunction,R)">collectFloat</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| R extends <a href="../../api/collection/primitive/MutableFloatCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableFloatCollection</a>></span> |
| <span class="returnType">R</span> <span class="memberName">collectFloat</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a><? super V> floatFunction, |
| R target)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction,R)"><code>RichIterable.collectFloat(FloatFunction, MutableFloatCollection)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectInt(java.util.Map,org.eclipse.collections.api.block.function.primitive.IntFunction)">collectInt</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/collection/primitive/MutableIntCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableIntCollection</a></span> <span class="memberName">collectInt</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a><? super V> intFunction)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction)"><code>RichIterable.collectInt(IntFunction)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectInt(java.util.Map,org.eclipse.collections.api.block.function.primitive.IntFunction,org.eclipse.collections.api.collection.primitive.MutableIntCollection)"> |
| <!-- --> |
| </a><a id="collectInt(java.util.Map,org.eclipse.collections.api.block.function.primitive.IntFunction,R)">collectInt</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| R extends <a href="../../api/collection/primitive/MutableIntCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableIntCollection</a>></span> |
| <span class="returnType">R</span> <span class="memberName">collectInt</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a><? super V> intFunction, |
| R target)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction,R)"><code>RichIterable.collectInt(IntFunction, MutableIntCollection)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectLong(java.util.Map,org.eclipse.collections.api.block.function.primitive.LongFunction)">collectLong</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/collection/primitive/MutableLongCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableLongCollection</a></span> <span class="memberName">collectLong</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a><? super V> longFunction)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction)"><code>RichIterable.collectLong(LongFunction)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectLong(java.util.Map,org.eclipse.collections.api.block.function.primitive.LongFunction,org.eclipse.collections.api.collection.primitive.MutableLongCollection)"> |
| <!-- --> |
| </a><a id="collectLong(java.util.Map,org.eclipse.collections.api.block.function.primitive.LongFunction,R)">collectLong</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| R extends <a href="../../api/collection/primitive/MutableLongCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableLongCollection</a>></span> |
| <span class="returnType">R</span> <span class="memberName">collectLong</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a><? super V> longFunction, |
| R target)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction,R)"><code>RichIterable.collectLong(LongFunction, MutableLongCollection)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectShort(java.util.Map,org.eclipse.collections.api.block.function.primitive.ShortFunction)">collectShort</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/collection/primitive/MutableShortCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableShortCollection</a></span> <span class="memberName">collectShort</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/ShortFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ShortFunction</a><? super V> shortFunction)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction)"><code>RichIterable.collectShort(ShortFunction)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectShort(java.util.Map,org.eclipse.collections.api.block.function.primitive.ShortFunction,org.eclipse.collections.api.collection.primitive.MutableShortCollection)"> |
| <!-- --> |
| </a><a id="collectShort(java.util.Map,org.eclipse.collections.api.block.function.primitive.ShortFunction,R)">collectShort</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| R extends <a href="../../api/collection/primitive/MutableShortCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableShortCollection</a>></span> |
| <span class="returnType">R</span> <span class="memberName">collectShort</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/primitive/ShortFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ShortFunction</a><? super V> shortFunction, |
| R target)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction,R)"><code>RichIterable.collectShort(ShortFunction, MutableShortCollection)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collect(java.util.Map,org.eclipse.collections.api.block.function.Function2)">collect</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| K2,​ |
| V2></span> <span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K2,​V2></span> <span class="memberName">collect</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super K,​? super V,​<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><K2,​V2>> function)</span></div> |
| <div class="block">For each value of the map, the function is evaluated with the key and value as the parameter. |
| The results of these evaluations are collected into a new UnifiedMap.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collect(java.util.Map,org.eclipse.collections.api.block.function.Function2,java.util.Map)"> |
| <!-- --> |
| </a><a id="collect(java.util.Map,org.eclipse.collections.api.block.function.Function2,R)">collect</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K1,​ |
| V1,​ |
| K2,​ |
| V2,​ |
| R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K2,​ |
| V2>></span> <span class="returnType">R</span> <span class="memberName">collect</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K1,​V1> map, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super K1,​? super V1,​<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><K2,​V2>> function, |
| R target)</span></div> |
| <div class="block">For each value of the map, the function is evaluated with the key and value as the parameter. |
| The results of these evaluations are collected into the target map.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectValues(java.util.Map,org.eclipse.collections.api.block.function.Function2)">collectValues</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| V2></span> <span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K,​V2></span> <span class="memberName">collectValues</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super K,​? super V,​? extends V2> function)</span></div> |
| <div class="block">For each key and value of the map, the function is evaluated with the key and value as the parameter. |
| The results of these evaluations are collected into the target map.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectValues(java.util.Map,org.eclipse.collections.api.block.function.Function2,java.util.Map)"> |
| <!-- --> |
| </a><a id="collectValues(java.util.Map,org.eclipse.collections.api.block.function.Function2,R)">collectValues</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| V2,​ |
| R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​ |
| V2>></span> <span class="returnType">R</span> <span class="memberName">collectValues</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super K,​? super V,​? extends V2> function, |
| R target)</span></div> |
| <div class="block">For each key and value of the map, the function is evaluated with the key and value as the parameter. |
| The results of these evaluations are collected into the target map.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectIf(java.util.Map,org.eclipse.collections.api.block.function.Function2,org.eclipse.collections.api.block.predicate.Predicate2)">collectIf</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K1,​ |
| V1,​ |
| K2,​ |
| V2></span> <span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K2,​V2></span> <span class="memberName">collectIf</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K1,​V1> map, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super K1,​? super V1,​<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><K2,​V2>> function, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super K1,​? super V1> predicate)</span></div> |
| <div class="block">For each value of the map, the Predicate2 is evaluated with the key and value as the parameter, |
| and if true, then <code>function</code> is applied. |
| The results of these evaluations are collected into a new map.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectIf(java.util.Map,org.eclipse.collections.api.block.function.Function2,org.eclipse.collections.api.block.predicate.Predicate2,java.util.Map)">collectIf</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K1,​ |
| V1,​ |
| K2,​ |
| V2></span> <span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K2,​V2></span> <span class="memberName">collectIf</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K1,​V1> map, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super K1,​? super V1,​<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><K2,​V2>> function, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super K1,​? super V1> predicate, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K2,​V2> target)</span></div> |
| <div class="block">For each value of the map, the Predicate2 is evaluated with the key and value as the parameter, |
| and if true, then <code>function</code> is applied. |
| The results of these evaluations are collected into the target map.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collect(java.util.Map,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">collect</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K1,​ |
| V1,​ |
| K2,​ |
| V2></span> <span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K2,​V2></span> <span class="memberName">collect</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K1,​V1> map, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super K1,​? extends K2> keyFunction, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super V1,​? extends V2> valueFunction)</span></div> |
| <div class="block">For each key-value entry of a map, applies a function to each, and adds the transformed entry to a new Map.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collect(java.util.Map,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,java.util.Map)">collect</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K1,​ |
| V1,​ |
| K2,​ |
| V2></span> <span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K2,​V2></span> <span class="memberName">collect</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K1,​V1> map, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super K1,​? extends K2> keyFunction, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super V1,​? extends V2> valueFunction, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K2,​V2> target)</span></div> |
| <div class="block">For each key-value entry of a map, applies a function to each, and adds the transformed entry to the target Map.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collect(java.util.Map,org.eclipse.collections.api.block.function.Function,java.util.Collection)"> |
| <!-- --> |
| </a><a id="collect(java.util.Map,org.eclipse.collections.api.block.function.Function,R)">collect</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| A,​ |
| R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><A>></span> <span class="returnType">R</span> <span class="memberName">collect</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super V,​? extends A> function, |
| R targetCollection)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="Iterate.html#collect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,R)"><code>Iterate.collect(Iterable, Function, Collection)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="forEachValue(java.util.Map,org.eclipse.collections.api.block.procedure.Procedure)">forEachValue</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType">void</span> <span class="memberName">forEachValue</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/procedure/Procedure.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure</a><? super V> procedure)</span></div> |
| <div class="block">For each value of the map, <code>procedure</code> is evaluated with the value as the parameter.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="forEachKey(java.util.Map,org.eclipse.collections.api.block.procedure.Procedure)">forEachKey</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType">void</span> <span class="memberName">forEachKey</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/procedure/Procedure.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure</a><? super K> procedure)</span></div> |
| <div class="block">For each key of the map, <code>procedure</code> is evaluated with the key as the parameter.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="forEachKeyValue(java.util.Map,org.eclipse.collections.api.block.procedure.Procedure2)">forEachKeyValue</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType">void</span> <span class="memberName">forEachKeyValue</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/procedure/Procedure2.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure2</a><? super K,​? super V> procedure)</span></div> |
| <div class="block">For each entry of the map, <code>procedure</code> is evaluated with the element as the parameter.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="flipUniqueValues(org.eclipse.collections.api.map.MapIterable)">flipUniqueValues</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><V,​K></span> <span class="memberName">flipUniqueValues</span>​(<span class="arguments"><a href="../../api/map/MapIterable.html" title="interface in org.eclipse.collections.api.map">MapIterable</a><K,​V> mapIterable)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/map/MapIterable.html#flipUniqueValues()"><code>MapIterable.flipUniqueValues()</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="detect(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate2)">detect</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><K,​V></span> <span class="memberName">detect</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super K,​? super V> predicate)</span></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="detect(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate)">detect</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType">V</span> <span class="memberName">detect</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="Iterate.html#detect(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)"><code>Iterate.detect(Iterable, Predicate)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="detectOptional(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate2)">detectOptional</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util" class="externalLink">Optional</a><<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><K,​V>></span> <span class="memberName">detectOptional</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super K,​? super V> predicate)</span></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="detectOptional(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate)">detectOptional</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util" class="externalLink">Optional</a><V></span> <span class="memberName">detectOptional</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="Iterate.html#detectOptional(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)"><code>Iterate.detectOptional(Iterable, Predicate)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="detectIfNone(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate,java.lang.Object)"> |
| <!-- --> |
| </a><a id="detectIfNone(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate,V)">detectIfNone</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType">V</span> <span class="memberName">detectIfNone</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate, |
| V ifNone)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="Iterate.html#detectIfNone(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate,T)"><code>Iterate.detectIfNone(Iterable, Predicate, Object)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="injectInto(java.lang.Object,java.util.Map,org.eclipse.collections.api.block.function.Function2)"> |
| <!-- --> |
| </a><a id="injectInto(IV,java.util.Map,org.eclipse.collections.api.block.function.Function2)">injectInto</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| IV></span> <span class="returnType">IV</span> <span class="memberName">injectInto</span>​(<span class="arguments">IV injectValue, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super IV,​? super V,​? extends IV> function)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="Iterate.html#injectInto(IV,java.lang.Iterable,org.eclipse.collections.api.block.function.Function2)"><code>Iterate.injectInto(Object, Iterable, Function2)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="injectIntoIf(java.lang.Object,java.util.Map,org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function2)"> |
| <!-- --> |
| </a><a id="injectIntoIf(IV,java.util.Map,org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function2)">injectIntoIf</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><IV,​ |
| K,​ |
| V></span> <span class="returnType">IV</span> <span class="memberName">injectIntoIf</span>​(<span class="arguments">IV initialValue, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super IV,​? super V,​? extends IV> function)</span></div> |
| <div class="block">Same as <a href="#injectInto(IV,java.util.Map,org.eclipse.collections.api.block.function.Function2)"><code>injectInto(Object, Map, Function2)</code></a>, but only applies the value to the function |
| if the predicate returns true for the value.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="#injectInto(IV,java.util.Map,org.eclipse.collections.api.block.function.Function2)"><code>injectInto(Object, Map, Function2)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="anySatisfy(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate)">anySatisfy</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType">boolean</span> <span class="memberName">anySatisfy</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="Iterate.html#anySatisfy(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)"><code>Iterate.anySatisfy(Iterable, Predicate)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="allSatisfy(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate)">allSatisfy</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType">boolean</span> <span class="memberName">allSatisfy</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="Iterate.html#allSatisfy(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)"><code>Iterate.allSatisfy(Iterable, Predicate)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="noneSatisfy(java.util.Map,org.eclipse.collections.api.block.predicate.Predicate)">noneSatisfy</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType">boolean</span> <span class="memberName">noneSatisfy</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super V> predicate)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="Iterate.html#noneSatisfy(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)"><code>Iterate.noneSatisfy(Iterable, Predicate)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toListOfPairs(java.util.Map)">toListOfPairs</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><K,​V>></span> <span class="memberName">toListOfPairs</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map)</span></div> |
| <div class="block">Iterate over the specified map applying the specified Function to each value |
| and return the results as a List.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toSortedList(java.util.Map,java.util.Comparator)">toSortedList</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><V></span> <span class="memberName">toSortedList</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a><? super V> comparator)</span></div> |
| <div class="block">Iterate over the specified map applying the specified Function to each value |
| and return the results as a sorted List using the specified Comparator.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="reverseMapping(java.util.Map)">reverseMapping</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><V,​K></span> <span class="memberName">reverseMapping</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map)</span></div> |
| <div class="block">Return a new map swapping key-value for value-key. |
| If the original map contains entries with the same value, the result mapping is undefined, |
| in that the last entry applied wins (the order of application is undefined).</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="occurrencesOf(java.util.Map,java.lang.Object)"> |
| <!-- --> |
| </a><a id="occurrencesOf(java.util.Map,V)">occurrencesOf</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType">int</span> <span class="memberName">occurrencesOf</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| V object)</span></div> |
| <div class="block">Return the number of occurrences of object in the specified map.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="occurrencesOfAttribute(java.util.Map,org.eclipse.collections.api.block.function.Function,java.lang.Object)"> |
| <!-- --> |
| </a><a id="occurrencesOfAttribute(java.util.Map,org.eclipse.collections.api.block.function.Function,A)">occurrencesOfAttribute</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V,​ |
| A></span> <span class="returnType">int</span> <span class="memberName">occurrencesOfAttribute</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><K,​V> map, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super V,​? extends A> function, |
| A object)</span></div> |
| <div class="block">Return the number of occurrences where object is equal to the specified attribute in the specified map.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="flip(org.eclipse.collections.api.map.MapIterable)">flip</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/multimap/set/MutableSetMultimap.html" title="interface in org.eclipse.collections.api.multimap.set">MutableSetMultimap</a><V,​K></span> <span class="memberName">flip</span>​(<span class="arguments"><a href="../../api/map/MapIterable.html" title="interface in org.eclipse.collections.api.map">MapIterable</a><K,​V> iMap)</span></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="flip(org.eclipse.collections.api.map.sorted.SortedMapIterable)">flip</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../../api/multimap/sortedset/MutableSortedSetMultimap.html" title="interface in org.eclipse.collections.api.multimap.sortedset">MutableSortedSetMultimap</a><V,​K></span> <span class="memberName">flip</span>​(<span class="arguments"><a href="../../api/map/sorted/SortedMapIterable.html" title="interface in org.eclipse.collections.api.map.sorted">SortedMapIterable</a><K,​V> iMap)</span></div> |
| </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/MapIterate.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> |