| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (14.0.2) on Thu Aug 20 21:25:36 CDT 2020 --> |
| <title>Iterate (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: Iterate"> |
| <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,"i68":9,"i69":9,"i70":9,"i71":9,"i72":9,"i73":9,"i74":9,"i75":9,"i76":9,"i77":9,"i78":9,"i79":9,"i80":9,"i81":9,"i82":9,"i83":9,"i84":9,"i85":9,"i86":9,"i87":9,"i88":9,"i89":9,"i90":9,"i91":9,"i92":9,"i93":9,"i94":9,"i95":9,"i96":9,"i97":9,"i98":9,"i99":9,"i100":9,"i101":9,"i102":9,"i103":9,"i104":9,"i105":9,"i106":9,"i107":9,"i108":9,"i109":9,"i110":9,"i111":9,"i112":9,"i113":9,"i114":9,"i115":9,"i116":9,"i117":9,"i118":9,"i119":9,"i120":9,"i121":9,"i122":9,"i123":9,"i124":9,"i125":9,"i126":9,"i127":9,"i128":9,"i129":9,"i130":9,"i131":9,"i132":9,"i133":9,"i134":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/Iterate.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 Iterate" class="title">Class Iterate</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.Iterate</div> |
| </div> |
| <section class="description"> |
| <hr> |
| <pre>public final class <span class="typeNameLabel">Iterate</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 Iterate utility class acts as a router to other utility classes to provide optimized iteration pattern |
| implementations based on the type of iterable. The lowest common denominator used will normally be IterableIterate. |
| Iterate can be used when a JDK interface is the only type available to the developer, as it can |
| determine the best way to iterate based on instanceof checks.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.0</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 <T> boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addAllIterable(java.lang.Iterable,java.util.Collection)">addAllIterable</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><? extends T> iterable, |
| <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><T> targetCollection)</code></th> |
| <td class="colLast"> |
| <div class="block">Add all elements from the source Iterable to the target collection, returns true if any element was added.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i1"> |
| <td class="colFirst"><code>static <T,​ |
| 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><T>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addAllTo(java.lang.Iterable,R)">addAllTo</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><? extends T> iterable, |
| R targetCollection)</code></th> |
| <td class="colLast"> |
| <div class="block">Add all elements from the source Iterable to the target collection, return the target collection.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i2"> |
| <td class="colFirst"><code>static <T,​ |
| K,​ |
| V,​ |
| M 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>M</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addToMap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,M)">addToMap</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends K> keyFunction, |
| M map)</code></th> |
| <td class="colLast"> |
| <div class="block">Iterate over the specified collection applying a specific Function to each element to calculate a |
| key, and add the results to input Map.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i3"> |
| <td class="colFirst"><code>static <T,​ |
| K,​ |
| V,​ |
| M 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>M</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addToMap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,M)">addToMap</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends K> keyFunction, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> valueFunction, |
| M map)</code></th> |
| <td class="colLast"> |
| <div class="block">Iterate over the specified collection applying the specified Functions to each element to calculate |
| a key and value, and add the results to input Map.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i4"> |
| <td class="colFirst"><code>static <T,​ |
| 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="#aggregateBy(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function0,org.eclipse.collections.api.block.function.Function2)">aggregateBy</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends K> groupBy, |
| <a href="../../api/block/function/Function0.html" title="interface in org.eclipse.collections.api.block.function">Function0</a><? extends V> zeroValueFactory, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super V,​? super T,​? extends V> nonMutatingAggregator)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i5"> |
| <td class="colFirst"><code>static <T,​ |
| 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="#aggregateInPlaceBy(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function0,org.eclipse.collections.api.block.procedure.Procedure2)">aggregateInPlaceBy</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends K> groupBy, |
| <a href="../../api/block/function/Function0.html" title="interface in org.eclipse.collections.api.block.function">Function0</a><? extends V> zeroValueFactory, |
| <a href="../../api/block/procedure/Procedure2.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure2</a><? super V,​? super T> mutatingAggregator)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i6"> |
| <td class="colFirst"><code>static <T> boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#allSatisfy(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">allSatisfy</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns true if the predicate evaluates to true for every element of the iterable, or returns false.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i7"> |
| <td class="colFirst"><code>static <T,​ |
| P> boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#allSatisfyWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P)">allSatisfyWith</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns true if the predicate evaluates to true for every element of the iterable, or returns false.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i8"> |
| <td class="colFirst"><code>static <T> boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#anySatisfy(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">anySatisfy</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns true if the predicate evaluates to true for any element of the iterable.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i9"> |
| <td class="colFirst"><code>static <T,​ |
| P> boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#anySatisfyWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P)">anySatisfyWith</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns true if the predicate2 and parameter evaluates to true for any element of the iterable.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i10"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#appendString(java.lang.Iterable,java.lang.Appendable)">appendString</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Appendable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Appendable</a> appendable)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i11"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#appendString(java.lang.Iterable,java.lang.Appendable,java.lang.String)">appendString</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Appendable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Appendable</a> appendable, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> separator)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i12"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#appendString(java.lang.Iterable,java.lang.Appendable,java.lang.String,java.lang.String,java.lang.String)">appendString</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Appendable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Appendable</a> appendable, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> start, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> separator, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> end)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i13"> |
| <td class="colFirst"><code>static <T> <a href="../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><T>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#chunk(java.lang.Iterable,int)">chunk</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| int size)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i14"> |
| <td class="colFirst"><code>static <T,​ |
| 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.lang.Iterable,org.eclipse.collections.api.block.function.Function,R)">collect</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends A> function, |
| R targetCollection)</code></th> |
| <td class="colLast"> |
| <div class="block">Same as the <a href="#collect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)"><code>collect(Iterable, Function)</code></a> method with two parameters, except that the results are gathered into the specified |
| targetCollection</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i15"> |
| <td class="colFirst"><code>static <T,​ |
| 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="#collect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)">collect</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> function)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new collection with the results of applying the specified function for each element of the iterable.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i16"> |
| <td class="colFirst"><code>static <T> <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.lang.Iterable,org.eclipse.collections.api.block.function.primitive.BooleanFunction)">collectBoolean</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/BooleanFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">BooleanFunction</a><? super T> booleanFunction)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new primitive <code>boolean</code> collection with the results of applying the specified booleanFunction for each element of the iterable.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i17"> |
| <td class="colFirst"><code>static <T,​ |
| 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.lang.Iterable,org.eclipse.collections.api.block.function.primitive.BooleanFunction,R)">collectBoolean</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/BooleanFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">BooleanFunction</a><? super T> booleanFunction, |
| R target)</code></th> |
| <td class="colLast"> |
| <div class="block">Same as <a href="#collectBoolean(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.BooleanFunction)"><code>collectBoolean(Iterable, BooleanFunction)</code></a>, except that the results are gathered into the specified <code>target</code> |
| collection.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i18"> |
| <td class="colFirst"><code>static <T> <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.lang.Iterable,org.eclipse.collections.api.block.function.primitive.ByteFunction)">collectByte</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/ByteFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ByteFunction</a><? super T> byteFunction)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new <code>byte</code> collection with the results of applying the specified byteFunction for each element of the iterable.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i19"> |
| <td class="colFirst"><code>static <T,​ |
| 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.lang.Iterable,org.eclipse.collections.api.block.function.primitive.ByteFunction,R)">collectByte</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/ByteFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ByteFunction</a><? super T> byteFunction, |
| R target)</code></th> |
| <td class="colLast"> |
| <div class="block">Same as <a href="#collectByte(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.ByteFunction)"><code>collectByte(Iterable, ByteFunction)</code></a>, except that the results are gathered into the specified <code>target</code> |
| collection.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i20"> |
| <td class="colFirst"><code>static <T> <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.lang.Iterable,org.eclipse.collections.api.block.function.primitive.CharFunction)">collectChar</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/CharFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">CharFunction</a><? super T> charFunction)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new <code>char</code> collection with the results of applying the specified charFunction for each element of the iterable.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i21"> |
| <td class="colFirst"><code>static <T,​ |
| 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.lang.Iterable,org.eclipse.collections.api.block.function.primitive.CharFunction,R)">collectChar</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/CharFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">CharFunction</a><? super T> charFunction, |
| R target)</code></th> |
| <td class="colLast"> |
| <div class="block">Same as <a href="#collectChar(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.CharFunction)"><code>collectChar(Iterable, CharFunction)</code></a>, except that the results are gathered into the specified <code>target</code> |
| collection.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i22"> |
| <td class="colFirst"><code>static <T> <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.lang.Iterable,org.eclipse.collections.api.block.function.primitive.DoubleFunction)">collectDouble</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a><? super T> doubleFunction)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new <code>double</code> collection with the results of applying the specified doubleFunction for each element of the iterable.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i23"> |
| <td class="colFirst"><code>static <T,​ |
| 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.lang.Iterable,org.eclipse.collections.api.block.function.primitive.DoubleFunction,R)">collectDouble</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a><? super T> doubleFunction, |
| R target)</code></th> |
| <td class="colLast"> |
| <div class="block">Same as <a href="#collectDouble(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.DoubleFunction)"><code>collectDouble(Iterable, DoubleFunction)</code></a>, except that the results are gathered into the specified <code>target</code> |
| collection.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i24"> |
| <td class="colFirst"><code>static <T> <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.lang.Iterable,org.eclipse.collections.api.block.function.primitive.FloatFunction)">collectFloat</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a><? super T> floatFunction)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new <code>float</code> collection with the results of applying the specified floatFunction for each element of the iterable.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i25"> |
| <td class="colFirst"><code>static <T,​ |
| 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.lang.Iterable,org.eclipse.collections.api.block.function.primitive.FloatFunction,R)">collectFloat</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a><? super T> floatFunction, |
| R target)</code></th> |
| <td class="colLast"> |
| <div class="block">Same as <a href="#collectFloat(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.FloatFunction)"><code>collectFloat(Iterable, FloatFunction)</code></a>, except that the results are gathered into the specified <code>target</code> |
| collection.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i26"> |
| <td class="colFirst"><code>static <T,​ |
| 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="#collectIf(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function)">collectIf</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> function)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i27"> |
| <td class="colFirst"><code>static <T,​ |
| 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="#collectIf(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function,R)">collectIf</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> function, |
| R target)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i28"> |
| <td class="colFirst"><code>static <T> <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.lang.Iterable,org.eclipse.collections.api.block.function.primitive.IntFunction)">collectInt</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a><? super T> intFunction)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new <code>int</code> collection with the results of applying the specified intFunction for each element of the iterable.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i29"> |
| <td class="colFirst"><code>static <T,​ |
| 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.lang.Iterable,org.eclipse.collections.api.block.function.primitive.IntFunction,R)">collectInt</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a><? super T> intFunction, |
| R target)</code></th> |
| <td class="colLast"> |
| <div class="block">Same as <a href="#collectInt(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.IntFunction)"><code>collectInt(Iterable, IntFunction)</code></a>, except that the results are gathered into the specified <code>target</code> |
| collection.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i30"> |
| <td class="colFirst"><code>static <T> <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.lang.Iterable,org.eclipse.collections.api.block.function.primitive.LongFunction)">collectLong</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a><? super T> longFunction)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new <code>long</code> collection with the results of applying the specified longFunction for each element of the iterable.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i31"> |
| <td class="colFirst"><code>static <T,​ |
| 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.lang.Iterable,org.eclipse.collections.api.block.function.primitive.LongFunction,R)">collectLong</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a><? super T> longFunction, |
| R target)</code></th> |
| <td class="colLast"> |
| <div class="block">Same as <a href="#collectLong(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.LongFunction)"><code>collectLong(Iterable, LongFunction)</code></a>, except that the results are gathered into the specified <code>target</code> |
| collection.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i32"> |
| <td class="colFirst"><code>static <T> <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.lang.Iterable,org.eclipse.collections.api.block.function.primitive.ShortFunction)">collectShort</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/ShortFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ShortFunction</a><? super T> shortFunction)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new <code>short</code> collection with the results of applying the specified shortFunction for each element of the iterable.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i33"> |
| <td class="colFirst"><code>static <T,​ |
| 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.lang.Iterable,org.eclipse.collections.api.block.function.primitive.ShortFunction,R)">collectShort</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/ShortFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ShortFunction</a><? super T> shortFunction, |
| R target)</code></th> |
| <td class="colLast"> |
| <div class="block">Same as <a href="#collectShort(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.ShortFunction)"><code>collectShort(Iterable, ShortFunction)</code></a>, except that the results are gathered into the specified <code>target</code> |
| collection.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i34"> |
| <td class="colFirst"><code>static <T,​ |
| P,​ |
| A> <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></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectWith(java.lang.Iterable,org.eclipse.collections.api.block.function.Function2,P)">collectWith</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super T,​? super P,​? extends A> function, |
| P parameter)</code></th> |
| <td class="colLast"> |
| <div class="block">Same as collect with a Function2 and specified parameter which is passed to the function.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i35"> |
| <td class="colFirst"><code>static <T,​ |
| P,​ |
| 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="#collectWith(java.lang.Iterable,org.eclipse.collections.api.block.function.Function2,P,R)">collectWith</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super T,​? super P,​? extends A> function, |
| P parameter, |
| R targetCollection)</code></th> |
| <td class="colLast"> |
| <div class="block">Same as collectWith but with a targetCollection parameter to gather the results.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i36"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#contains(java.lang.Iterable,java.lang.Object)">contains</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><?> iterable, |
| <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> value)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns true if the iterable contains the value.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i37"> |
| <td class="colFirst"><code>static <T> int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#count(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">count</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the total number of elements that evaluate to true for the specified predicate.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i38"> |
| <td class="colFirst"><code>static <T,​ |
| IV> int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#countWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,IV)">countWith</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super IV> predicate, |
| IV injectedValue)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the total number of elements that evaluate to true for the specified predicate2 and parameter.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i39"> |
| <td class="colFirst"><code>static <T> T</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#detect(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">detect</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the first element of the iterable that evaluates to true for the specified predicate, or null if |
| no element evaluates to true.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i40"> |
| <td class="colFirst"><code>static <T> T</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#detectIfNone(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate,T)">detectIfNone</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate, |
| T ifNone)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the first element of the iterable that evaluates to true for the specified predicate, or returns the |
| result ifNone if no element evaluates to true.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i41"> |
| <td class="colFirst"><code>static <T> int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#detectIndex(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">detectIndex</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Searches for the first occurrence where the predicate evaluates to true, returns -1 if the predicate does not evaluate to true.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i42"> |
| <td class="colFirst"><code>static <T,​ |
| P> int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#detectIndexWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P)">detectIndexWith</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter)</code></th> |
| <td class="colLast"> |
| <div class="block">Searches for the first occurrence where the predicate2 and parameter evaluates to true, returns -1 if the predicate2 and parameter do not evaluate to true.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i43"> |
| <td class="colFirst"><code>static <T> <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><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#detectOptional(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">detectOptional</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the first element of the iterable that evaluates to true for the specified predicate as an Optional.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i44"> |
| <td class="colFirst"><code>static <T,​ |
| P> T</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#detectWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P)">detectWith</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the first element of the iterable that evaluates to true for the specified predicate2 and parameter, |
| or null if no element evaluates to true.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i45"> |
| <td class="colFirst"><code>static <T,​ |
| P> T</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#detectWithIfNone(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P,T)">detectWithIfNone</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter, |
| T ifNone)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the first element of the iterable that evaluates to true for the specified predicate2 and parameter, |
| or returns the result ifNone if no element evaluates to true.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i46"> |
| <td class="colFirst"><code>static <T,​ |
| P> <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><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#detectWithOptional(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P)">detectWithOptional</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the first element of the iterable that evaluates to true for the specified predicate2 and parameter as |
| an Optional.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i47"> |
| <td class="colFirst"><code>static <T> <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><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#drop(java.lang.Iterable,int)">drop</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| int count)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a collection without the first <code>count</code> elements of the iterable |
| or an empty iterable if the <code>count</code> is greater than the length of the iterable.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i48"> |
| <td class="colFirst"><code>static <T,​ |
| 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="#flatCollect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,R)">flatCollect</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><A>> function, |
| R targetCollection)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i49"> |
| <td class="colFirst"><code>static <T,​ |
| 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="#flatCollect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)">flatCollect</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><V>> function)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i50"> |
| <td class="colFirst"><code>static <T> <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><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#flatten(java.lang.Iterable)">flatten</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T>> iterable)</code></th> |
| <td class="colLast"> |
| <div class="block">Flattens a collection of collections into one "flat" collection.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i51"> |
| <td class="colFirst"><code>static <T,​ |
| 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><T>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#flatten(java.lang.Iterable,R)">flatten</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T>> iterable, |
| R targetCollection)</code></th> |
| <td class="colLast"> |
| <div class="block">Same as <a href="#flatten(java.lang.Iterable)"><code>flatten(Iterable)</code></a> except that the results are gathered into the specified targetCollection.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i52"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../multimap/bag/HashBagMultimap.html" title="class in org.eclipse.collections.impl.multimap.bag">HashBagMultimap</a><V,​K></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#flip(org.eclipse.collections.api.multimap.bag.BagMultimap)">flip</a></span>​(<a href="../../api/multimap/bag/BagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">BagMultimap</a><K,​V> bagMultimap)</code></th> |
| <td class="colLast"> |
| <div class="block">Flip the keys and values of the multimap.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i53"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../multimap/bag/HashBagMultimap.html" title="class in org.eclipse.collections.impl.multimap.bag">HashBagMultimap</a><V,​K></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#flip(org.eclipse.collections.api.multimap.list.ListMultimap)">flip</a></span>​(<a href="../../api/multimap/list/ListMultimap.html" title="interface in org.eclipse.collections.api.multimap.list">ListMultimap</a><K,​V> listMultimap)</code></th> |
| <td class="colLast"> |
| <div class="block">Flip the keys and values of the multimap.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i54"> |
| <td class="colFirst"><code>static <K,​ |
| V> <a href="../multimap/set/UnifiedSetMultimap.html" title="class in org.eclipse.collections.impl.multimap.set">UnifiedSetMultimap</a><V,​K></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#flip(org.eclipse.collections.api.multimap.set.SetMultimap)">flip</a></span>​(<a href="../../api/multimap/set/SetMultimap.html" title="interface in org.eclipse.collections.api.multimap.set">SetMultimap</a><K,​V> setMultimap)</code></th> |
| <td class="colLast"> |
| <div class="block">Flip the keys and values of the multimap.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i55"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#forEach(java.lang.Iterable,org.eclipse.collections.api.block.procedure.Procedure)">forEach</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/procedure/Procedure.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure</a><? super T> procedure)</code></th> |
| <td class="colLast"> |
| <div class="block">The procedure is evaluated for each element of the iterable.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i56"> |
| <td class="colFirst"><code>static <T,​ |
| P> void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#forEachWith(java.lang.Iterable,org.eclipse.collections.api.block.procedure.Procedure2,P)">forEachWith</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/procedure/Procedure2.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure2</a><? super T,​? super P> procedure, |
| P parameter)</code></th> |
| <td class="colLast"> |
| <div class="block">The procedure2 is evaluated for each element of the iterable with the specified parameter passed |
| as the second argument.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i57"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#forEachWithIndex(java.lang.Iterable,org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure)">forEachWithIndex</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/procedure/primitive/ObjectIntProcedure.html" title="interface in org.eclipse.collections.api.block.procedure.primitive">ObjectIntProcedure</a><? super T> objectIntProcedure)</code></th> |
| <td class="colLast"> |
| <div class="block">Iterates over a collection passing each element and the current relative int index to the specified instance of |
| ObjectIntProcedure.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i58"> |
| <td class="colFirst"><code>static <T> T</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getFirst(java.lang.Iterable)">getFirst</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the first element of a collection.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i59"> |
| <td class="colFirst"><code>static <T> T</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLast(java.lang.Iterable)">getLast</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the last element of a collection.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i60"> |
| <td class="colFirst"><code>static <T> T</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getOnly(java.lang.Iterable)">getOnly</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i61"> |
| <td class="colFirst"><code>static <T,​ |
| V> <a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a><V,​T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#groupBy(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)">groupBy</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> function)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i62"> |
| <td class="colFirst"><code>static <T,​ |
| V,​ |
| R extends <a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a><V,​ |
| T>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#groupBy(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,R)">groupBy</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> function, |
| R targetMultimap)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i63"> |
| <td class="colFirst"><code>static <T,​ |
| K,​ |
| V,​ |
| R extends <a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a><K,​ |
| V>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#groupByAndCollect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)">groupByAndCollect</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends K> groupByFunction, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> valueFunction, |
| R targetMultimap)</code></th> |
| <td class="colLast"> |
| <div class="block">Iterate over the specified collection applying the specified Functions to each element to calculate |
| a key and value, add the results to <code>targetMultimap</code> and return the <code>targetMultimap</code>.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i64"> |
| <td class="colFirst"><code>static <T,​ |
| V> <a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a><V,​T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#groupByEach(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)">groupByEach</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><V>> function)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i65"> |
| <td class="colFirst"><code>static <T,​ |
| V,​ |
| R extends <a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a><V,​ |
| T>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#groupByEach(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,R)">groupByEach</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><V>> function, |
| R targetCollection)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i66"> |
| <td class="colFirst"><code>static <V,​ |
| T> <a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><V,​T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#groupByUniqueKey(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)">groupByUniqueKey</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> function)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i67"> |
| <td class="colFirst"><code>static <V,​ |
| T,​ |
| R extends <a href="../../api/map/MutableMapIterable.html" title="interface in org.eclipse.collections.api.map">MutableMapIterable</a><V,​ |
| T>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#groupByUniqueKey(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,R)">groupByUniqueKey</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> function, |
| R target)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i68"> |
| <td class="colFirst"><code>static <T> double</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#injectInto(double,java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.DoubleObjectToDoubleFunction)">injectInto</a></span>​(double injectValue, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/DoubleObjectToDoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleObjectToDoubleFunction</a><? super T> function)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i69"> |
| <td class="colFirst"><code>static <T> float</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#injectInto(float,java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.FloatObjectToFloatFunction)">injectInto</a></span>​(float injectValue, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/FloatObjectToFloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatObjectToFloatFunction</a><? super T> function)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i70"> |
| <td class="colFirst"><code>static <T> int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#injectInto(int,java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.IntObjectToIntFunction)">injectInto</a></span>​(int injectValue, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/IntObjectToIntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntObjectToIntFunction</a><? super T> function)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i71"> |
| <td class="colFirst"><code>static <T> long</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#injectInto(long,java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.LongObjectToLongFunction)">injectInto</a></span>​(long injectValue, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/LongObjectToLongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongObjectToLongFunction</a><? super T> function)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i72"> |
| <td class="colFirst"><code>static <T,​ |
| IV> IV</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#injectInto(IV,java.lang.Iterable,org.eclipse.collections.api.block.function.Function2)">injectInto</a></span>​(IV injectValue, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super IV,​? super T,​? extends IV> function)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i73"> |
| <td class="colFirst"><code>static <T,​ |
| IV,​ |
| P> IV</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#injectIntoWith(IV,java.lang.Iterable,org.eclipse.collections.api.block.function.Function3,P)">injectIntoWith</a></span>​(IV injectValue, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function3.html" title="interface in org.eclipse.collections.api.block.function">Function3</a><? super IV,​? super T,​? super P,​? extends IV> function, |
| P parameter)</code></th> |
| <td class="colLast"> |
| <div class="block">Similar to <a href="#injectInto(IV,java.lang.Iterable,org.eclipse.collections.api.block.function.Function2)"><code>injectInto(Object, Iterable, Function2)</code></a>, except with a parameter is used as third generic argument in function3.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i74"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isEmpty(java.lang.Iterable)">isEmpty</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><?> iterable)</code></th> |
| <td class="colLast"> |
| <div class="block">A null-safe check on a collection to see if it isEmpty.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i75"> |
| <td class="colFirst"><code>static <T> <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeString(java.lang.Iterable)">makeString</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i76"> |
| <td class="colFirst"><code>static <T> <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeString(java.lang.Iterable,java.lang.String)">makeString</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> separator)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i77"> |
| <td class="colFirst"><code>static <T> <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeString(java.lang.Iterable,java.lang.String,java.lang.String,java.lang.String)">makeString</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> start, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> separator, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> end)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i78"> |
| <td class="colFirst"><code>static <T> T</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#max(java.lang.Iterable)">max</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i79"> |
| <td class="colFirst"><code>static <T> T</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#max(java.lang.Iterable,java.util.Comparator)">max</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <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 T> comparator)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i80"> |
| <td class="colFirst"><code>static <T,​ |
| V extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a><? super V>><br>T</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#maxBy(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)">maxBy</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> function)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the maximum element out of the iterable based on the natural order of the attribute returned by the function.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i81"> |
| <td class="colFirst"><code>static <T> T</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#min(java.lang.Iterable)">min</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i82"> |
| <td class="colFirst"><code>static <T> T</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#min(java.lang.Iterable,java.util.Comparator)">min</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <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 T> comparator)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i83"> |
| <td class="colFirst"><code>static <T,​ |
| V extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a><? super V>><br>T</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#minBy(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)">minBy</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> function)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the minimum element out of the iterable based on the natural order of the attribute returned by the function.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i84"> |
| <td class="colFirst"><code>static <T> boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#noneSatisfy(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">noneSatisfy</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns true if the predicate evaluates to false for every element of the iterable, or returns false.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i85"> |
| <td class="colFirst"><code>static <T,​ |
| P> boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#noneSatisfyWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P)">noneSatisfyWith</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns true if the predicate evaluates to false for every element of the iterable, or returns false.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i86"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#notEmpty(java.lang.Iterable)">notEmpty</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><?> iterable)</code></th> |
| <td class="colLast"> |
| <div class="block">A null-safe check on a collection to see if it is notEmpty.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i87"> |
| <td class="colFirst"><code>static <T> <a href="../../api/partition/PartitionIterable.html" title="interface in org.eclipse.collections.api.partition">PartitionIterable</a><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#partition(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">partition</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Filters a collection into a PartitionIterable based on a predicate.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i88"> |
| <td class="colFirst"><code>static <T,​ |
| P> <a href="../../api/partition/PartitionIterable.html" title="interface in org.eclipse.collections.api.partition">PartitionIterable</a><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#partitionWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P)">partitionWith</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter)</code></th> |
| <td class="colLast"> |
| <div class="block">Filters a collection into a PartitionIterable based on a predicate.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i89"> |
| <td class="colFirst"><code>static <T,​ |
| R> R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reduceInPlace(java.lang.Iterable,java.util.function.Supplier,java.util.function.BiConsumer)">reduceInPlace</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Supplier.html?is-external=true" title="class or interface in java.util.function" class="externalLink">Supplier</a><R> supplier, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/BiConsumer.html?is-external=true" title="class or interface in java.util.function" class="externalLink">BiConsumer</a><R,​? super T> accumulator)</code></th> |
| <td class="colLast"> |
| <div class="block">This method produces the equivalent result as <a href="https://docs.oracle.com/javase/8/docs/api/java/util/stream/Stream.html?is-external=true#collect(java.util.function.Supplier,java.util.function.BiConsumer,java.util.function.BiConsumer)" title="class or interface in java.util.stream" class="externalLink"><code>Stream.collect(Supplier, BiConsumer, BiConsumer)</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i90"> |
| <td class="colFirst"><code>static <T,​ |
| A,​ |
| R> R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reduceInPlace(java.lang.Iterable,java.util.stream.Collector)">reduceInPlace</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/stream/Collector.html?is-external=true" title="class or interface in java.util.stream" class="externalLink">Collector</a><? super T,​A,​R> collector)</code></th> |
| <td class="colLast"> |
| <div class="block">This method produces the equivalent result as <a href="https://docs.oracle.com/javase/8/docs/api/java/util/stream/Stream.html?is-external=true#collect(java.util.stream.Collector)" title="class or interface in java.util.stream" class="externalLink"><code>Stream.collect(Collector)</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i91"> |
| <td class="colFirst"><code>static <T> <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><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reject(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">reject</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns all elements of the iterable that evaluate to false for the specified predicate.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i92"> |
| <td class="colFirst"><code>static <T,​ |
| 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><T>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reject(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate,R)">reject</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate, |
| R targetCollection)</code></th> |
| <td class="colLast"> |
| <div class="block">Same as the reject method with one parameter but uses the specified target collection for the results.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i93"> |
| <td class="colFirst"><code>static <T,​ |
| P> <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><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#rejectWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P)">rejectWith</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter)</code></th> |
| <td class="colLast"> |
| <div class="block">Similar to <a href="#reject(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)"><code>reject(Iterable, Predicate)</code></a>, except with an evaluation parameter for the second generic argument in <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate"><code>Predicate2</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i94"> |
| <td class="colFirst"><code>static <T,​ |
| P,​ |
| 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><T>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#rejectWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P,R)">rejectWith</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter, |
| R targetCollection)</code></th> |
| <td class="colLast"> |
| <div class="block">Same as the reject method with two parameters but uses the specified target collection.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i95"> |
| <td class="colFirst"><code>static <T,​ |
| 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><T>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeAllFrom(java.lang.Iterable,R)">removeAllFrom</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><? extends T> iterable, |
| R targetCollection)</code></th> |
| <td class="colLast"> |
| <div class="block">Remove all elements present in Iterable from the target collection, return the target collection.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i96"> |
| <td class="colFirst"><code>static <T> boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeAllIterable(java.lang.Iterable,java.util.Collection)">removeAllIterable</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><? extends T> iterable, |
| <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><T> targetCollection)</code></th> |
| <td class="colLast"> |
| <div class="block">Remove all elements present in Iterable from the target collection, returns true if any element was removed.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i97"> |
| <td class="colFirst"><code>static <T> boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeIf(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">removeIf</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Removes all elements from the iterable that evaluate to true for the specified predicate.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i98"> |
| <td class="colFirst"><code>static <T,​ |
| P> boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeIfWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P)">removeIfWith</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter)</code></th> |
| <td class="colLast"> |
| <div class="block">Removes all elements of the iterable that evaluate to true for the specified predicate2 and parameter.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i99"> |
| <td class="colFirst"><code>static <T> <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><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#select(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">select</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new collection with only the elements that evaluated to true for the specified predicate.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i100"> |
| <td class="colFirst"><code>static <T,​ |
| 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><T>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#select(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate,R)">select</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate, |
| R targetCollection)</code></th> |
| <td class="colLast"> |
| <div class="block">Same as the select method with two parameters but uses the specified target collection</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i101"> |
| <td class="colFirst"><code>static <T,​ |
| IV> <a href="../../api/tuple/Twin.html" title="interface in org.eclipse.collections.api.tuple">Twin</a><<a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><T>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#selectAndRejectWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,IV)">selectAndRejectWith</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super IV> predicate, |
| IV injectedValue)</code></th> |
| <td class="colLast"> |
| <div class="block">Filters a collection into two separate collections based on a predicate returned via a Twin.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i102"> |
| <td class="colFirst"><code>static <T> <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><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#selectInstancesOf(java.lang.Iterable,java.lang.Class)">selectInstancesOf</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><?> iterable, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang" class="externalLink">Class</a><T> clazz)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new collection with only the elements that are instances of the Class <code>clazz</code>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i103"> |
| <td class="colFirst"><code>static <T,​ |
| IV> <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><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#selectWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,IV)">selectWith</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super IV> predicate, |
| IV parameter)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new collection with only elements that evaluated to true for the specified predicate and parameter.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i104"> |
| <td class="colFirst"><code>static <T,​ |
| P,​ |
| 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><T>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#selectWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P,R)">selectWith</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter, |
| R targetCollection)</code></th> |
| <td class="colLast"> |
| <div class="block">Same as the selectWith method with two parameters but uses the specified target collection.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i105"> |
| <td class="colFirst"><code>static int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sizeOf(java.lang.Iterable)">sizeOf</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><?> iterable)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the size of an iterable.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i106"> |
| <td class="colFirst"><code>static <T extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a><? super T>,​ |
| L extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><T>><br>L</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sortThis(L)">sortThis</a></span>​(L list)</code></th> |
| <td class="colLast"> |
| <div class="block">SortThis is a mutating method.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i107"> |
| <td class="colFirst"><code>static <T,​ |
| L extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><T>><br>L</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sortThis(L,java.util.Comparator)">sortThis</a></span>​(L list, |
| <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 T> comparator)</code></th> |
| <td class="colLast"> |
| <div class="block">SortThis is a mutating method.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i108"> |
| <td class="colFirst"><code>static <T,​ |
| L extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><T>><br>L</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sortThis(L,org.eclipse.collections.api.block.predicate.Predicate2)">sortThis</a></span>​(L list, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super T> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">SortThis is a mutating method.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i109"> |
| <td class="colFirst"><code>static <T,​ |
| V extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a><? super V>,​ |
| L extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><T>><br>L</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sortThisBy(L,org.eclipse.collections.api.block.function.Function)">sortThisBy</a></span>​(L list, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> function)</code></th> |
| <td class="colLast"> |
| <div class="block">Sort the list by comparing an attribute defined by the function.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i110"> |
| <td class="colFirst"><code>static <V,​ |
| T> <a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><V,​<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math" class="externalLink">BigDecimal</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sumByBigDecimal(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">sumByBigDecimal</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><T,​V> groupBy, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math" class="externalLink">BigDecimal</a>> function)</code></th> |
| <td class="colLast"> |
| <div class="block">Groups and sums the values of the iterable using the two specified functions.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i111"> |
| <td class="colFirst"><code>static <V,​ |
| T> <a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><V,​<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math" class="externalLink">BigInteger</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sumByBigInteger(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">sumByBigInteger</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><T,​V> groupBy, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math" class="externalLink">BigInteger</a>> function)</code></th> |
| <td class="colLast"> |
| <div class="block">Groups and sums the values of the iterable using the two specified functions.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i112"> |
| <td class="colFirst"><code>static <T,​ |
| V> <a href="../../api/map/primitive/ObjectDoubleMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectDoubleMap</a><V></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sumByDouble(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.primitive.DoubleFunction)">sumByDouble</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><T,​V> groupBy, |
| <a href="../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a><? super T> function)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i113"> |
| <td class="colFirst"><code>static <T,​ |
| V> <a href="../../api/map/primitive/ObjectDoubleMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectDoubleMap</a><V></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sumByFloat(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.primitive.FloatFunction)">sumByFloat</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><T,​V> groupBy, |
| <a href="../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a><? super T> function)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i114"> |
| <td class="colFirst"><code>static <T,​ |
| V> <a href="../../api/map/primitive/ObjectLongMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectLongMap</a><V></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sumByInt(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.primitive.IntFunction)">sumByInt</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><T,​V> groupBy, |
| <a href="../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a><? super T> function)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i115"> |
| <td class="colFirst"><code>static <T,​ |
| V> <a href="../../api/map/primitive/ObjectLongMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectLongMap</a><V></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sumByLong(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.primitive.LongFunction)">sumByLong</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><T,​V> groupBy, |
| <a href="../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a><? super T> function)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i116"> |
| <td class="colFirst"><code>static <T> <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math" class="externalLink">BigDecimal</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sumOfBigDecimal(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)">sumOfBigDecimal</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math" class="externalLink">BigDecimal</a>> function)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the BigDecimal sum of the result of applying the function to each element of the iterable.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i117"> |
| <td class="colFirst"><code>static <T> <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math" class="externalLink">BigInteger</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sumOfBigInteger(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)">sumOfBigInteger</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math" class="externalLink">BigInteger</a>> function)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the BigInteger sum of the result of applying the function to each element of the iterable.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i118"> |
| <td class="colFirst"><code>static <T> double</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sumOfDouble(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.DoubleFunction)">sumOfDouble</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a><? super T> function)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i119"> |
| <td class="colFirst"><code>static <T> double</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sumOfFloat(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.FloatFunction)">sumOfFloat</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a><? super T> function)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i120"> |
| <td class="colFirst"><code>static <T> long</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sumOfInt(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.IntFunction)">sumOfInt</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a><? super T> function)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i121"> |
| <td class="colFirst"><code>static <T> long</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sumOfLong(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.LongFunction)">sumOfLong</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a><? super T> function)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i122"> |
| <td class="colFirst"><code>static <T> <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><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#take(java.lang.Iterable,int)">take</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| int count)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the first <code>count</code> elements of the iterable |
| or all the elements in the iterable if <code>count</code> is greater than the length of |
| the iterable.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i123"> |
| <td class="colFirst"><code>static <T> T[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toArray(java.lang.Iterable,T%5B%5D)">toArray</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><? extends T> iterable, |
| T[] target)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies the specified iterable into the specified array.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i124"> |
| <td class="colFirst"><code>static <T> <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>[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toArray(java.lang.Iterable)">toArray</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable)</code></th> |
| <td class="colLast"> |
| <div class="block">Converts the specified iterable to an array.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i125"> |
| <td class="colFirst"><code>static <T,​ |
| K> <a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K,​T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toMap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)">toMap</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends K> keyFunction)</code></th> |
| <td class="colLast"> |
| <div class="block">Iterate over the specified collection applying the specified Function to each element to calculate |
| a key and return the results as a Map.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i126"> |
| <td class="colFirst"><code>static <T,​ |
| 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="#toMap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">toMap</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends K> keyFunction, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> valueFunction)</code></th> |
| <td class="colLast"> |
| <div class="block">Iterate over the specified collection applying the specified Functions to each element to calculate |
| a key and value, and return the results as a Map.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i127"> |
| <td class="colFirst"><code>static <T,​ |
| 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="#toMap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)">toMap</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends K> keyFunction, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> valueFunction, |
| R target)</code></th> |
| <td class="colLast"> |
| <div class="block">Iterate over the specified collection applying the specified Functions to each element to calculate |
| a key and value, and return the results in the specified Map instance.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i128"> |
| <td class="colFirst"><code>static <T,​ |
| K,​ |
| V,​ |
| R extends <a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a><K,​ |
| V>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toMultimap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)">toMultimap</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends K> keyFunction, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><V>> valuesFunction, |
| R targetMultimap)</code></th> |
| <td class="colLast"> |
| <div class="block">Iterate over the specified collection applying the specified Functions to each element to calculate |
| a key and values, add the results to <code>targetMultimap</code> and return the <code>targetMultimap</code>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i129"> |
| <td class="colFirst"><code>static <T extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a><? super T>><br><a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toSortedList(java.lang.Iterable)">toSortedList</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable)</code></th> |
| <td class="colLast"> |
| <div class="block">Return the specified collection as a sorted List.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i130"> |
| <td class="colFirst"><code>static <T> <a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toSortedList(java.lang.Iterable,java.util.Comparator)">toSortedList</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <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 T> comparator)</code></th> |
| <td class="colLast"> |
| <div class="block">Return the specified collection as a sorted List using the specified Comparator.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i131"> |
| <td class="colFirst"><code>static <X,​ |
| Y> <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 href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><X,​Y>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#zip(java.lang.Iterable,java.lang.Iterable)">zip</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><X> xs, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><Y> ys)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i132"> |
| <td class="colFirst"><code>static <X,​ |
| Y,​ |
| 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 href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><X,​ |
| Y>>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#zip(java.lang.Iterable,java.lang.Iterable,R)">zip</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><X> xs, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><Y> ys, |
| R targetCollection)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i133"> |
| <td class="colFirst"><code>static <T> <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 href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><T,​<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang" class="externalLink">Integer</a>>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#zipWithIndex(java.lang.Iterable)">zipWithIndex</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i134"> |
| <td class="colFirst"><code>static <T,​ |
| 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 href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><T,​ |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang" class="externalLink">Integer</a>>>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#zipWithIndex(java.lang.Iterable,R)">zipWithIndex</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| R targetCollection)</code></th> |
| <td class="colLast"> </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="forEach(java.lang.Iterable,org.eclipse.collections.api.block.procedure.Procedure)">forEach</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">void</span> <span class="memberName">forEach</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/procedure/Procedure.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure</a><? super T> procedure)</span></div> |
| <div class="block">The procedure is evaluated for each element of the iterable. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| Iterate.<b>forEach</b>(people, person -> LOGGER.info(person.getName()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| Iterate.<b>forEach</b>(people, new Procedure<Person>() |
| { |
| public void value(Person person) |
| { |
| LOGGER.info(person.getName()); |
| } |
| }); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="forEachWith(java.lang.Iterable,org.eclipse.collections.api.block.procedure.Procedure2,java.lang.Object)"> |
| <!-- --> |
| </a><a id="forEachWith(java.lang.Iterable,org.eclipse.collections.api.block.procedure.Procedure2,P)">forEachWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| P></span> <span class="returnType">void</span> <span class="memberName">forEachWith</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/procedure/Procedure2.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure2</a><? super T,​? super P> procedure, |
| P parameter)</span></div> |
| <div class="block">The procedure2 is evaluated for each element of the iterable with the specified parameter passed |
| as the second argument. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| Iterate.<b>forEachWith</b>(people, (Person person, Person other) -> |
| { |
| if (other.equals(person)) |
| { |
| LOGGER.info(person.getName()); |
| } |
| }, fred); |
| </pre> |
| |
| <pre>e.g. |
| Iterate.<b>forEachWith</b>(people, new Procedure2<Person, Person>() |
| { |
| public void value(Person person, Person other) |
| { |
| if (person.isRelatedTo(other)) |
| { |
| LOGGER.info(person.getName()); |
| } |
| } |
| }, fred); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="forEachWithIndex(java.lang.Iterable,org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure)">forEachWithIndex</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">void</span> <span class="memberName">forEachWithIndex</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/procedure/primitive/ObjectIntProcedure.html" title="interface in org.eclipse.collections.api.block.procedure.primitive">ObjectIntProcedure</a><? super T> objectIntProcedure)</span></div> |
| <div class="block">Iterates over a collection passing each element and the current relative int index to the specified instance of |
| ObjectIntProcedure. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| Iterate.<b>forEachWithIndex</b>(people, (Person person, int index) -> LOGGER.info("Index: " + index + " person: " + person.getName())); |
| </pre> |
| <p> |
| Example using anonymous inner class: |
| <pre> |
| Iterate.<b>forEachWithIndex</b>(people, new ObjectIntProcedure<Person>() |
| { |
| public void value(Person person, int index) |
| { |
| LOGGER.info("Index: " + index + " person: " + person.getName()); |
| } |
| }); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="select(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">select</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></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><T></span> <span class="memberName">select</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</span></div> |
| <div class="block">Returns a new collection with only the elements that evaluated to true for the specified predicate. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| Collection<Person> selected = |
| Iterate.<b>select</b>(people, person -> person.getAddress().getCity().equals("Metuchen")); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre>e.g. |
| Collection<Person> selected = |
| Iterate.<b>select</b>(people, new Predicate<Person>() |
| { |
| public boolean accept(Person person) |
| { |
| return person.getAddress().getCity().equals("Metuchen"); |
| } |
| }); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="selectWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,java.lang.Object)"> |
| <!-- --> |
| </a><a id="selectWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,IV)">selectWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| IV></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><T></span> <span class="memberName">selectWith</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super IV> predicate, |
| IV parameter)</span></div> |
| <div class="block">Returns a new collection with only elements that evaluated to true for the specified predicate and parameter. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| Collection<Person> selected = |
| Iterate.<b>selectWith</b>(people, (Person person, Integer age) -> person.getAge() >= age, Integer.valueOf(18)); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| Collection<Person> selected = |
| Iterate.<b>selectWith</b>(people, new Predicate2<Person, Integer>() |
| { |
| public boolean accept(Person person, Integer age) |
| { |
| return person.getAge() >= age; |
| } |
| }, Integer.valueOf(18)); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="selectAndRejectWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,java.lang.Object)"> |
| <!-- --> |
| </a><a id="selectAndRejectWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,IV)">selectAndRejectWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| IV></span> <span class="returnType"><a href="../../api/tuple/Twin.html" title="interface in org.eclipse.collections.api.tuple">Twin</a><<a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><T>></span> <span class="memberName">selectAndRejectWith</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super IV> predicate, |
| IV injectedValue)</span></div> |
| <div class="block">Filters a collection into two separate collections based on a predicate returned via a Twin. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| Twin<MutableList<Person>>selectedRejected = |
| Iterate.<b>selectAndRejectWith</b>(people, (Person person, String lastName) -> lastName.equals(person.getLastName()), "Mason"); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| Twin<MutableList<Person>>selectedRejected = |
| Iterate.<b>selectAndRejectWith</b>(people, new Predicate2<String, String>() |
| { |
| public boolean accept(Person person, String lastName) |
| { |
| return lastName.equals(person.getLastName()); |
| } |
| }, "Mason"); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="partition(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">partition</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType"><a href="../../api/partition/PartitionIterable.html" title="interface in org.eclipse.collections.api.partition">PartitionIterable</a><T></span> <span class="memberName">partition</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</span></div> |
| <div class="block">Filters a collection into a PartitionIterable based on a predicate. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| PartitionIterable<Person> newYorkersAndNonNewYorkers = |
| Iterate.<b>partition</b>(people, person -> person.getAddress().getState().getName().equals("New York")); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| PartitionIterable<Person> newYorkersAndNonNewYorkers = |
| Iterate.<b>partition</b>(people, new Predicate<Person>() |
| { |
| public boolean accept(Person person) |
| { |
| return person.getAddress().getState().getName().equals("New York"); |
| } |
| }); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="partitionWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,java.lang.Object)"> |
| <!-- --> |
| </a><a id="partitionWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P)">partitionWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| P></span> <span class="returnType"><a href="../../api/partition/PartitionIterable.html" title="interface in org.eclipse.collections.api.partition">PartitionIterable</a><T></span> <span class="memberName">partitionWith</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter)</span></div> |
| <div class="block">Filters a collection into a PartitionIterable based on a predicate. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| PartitionIterable<Person> newYorkersAndNonNewYorkers = |
| Iterate.<b>partitionWith</b>(people, (Person person, String state) -> person.getAddress().getState().getName().equals(state), "New York"); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| PartitionIterable<Person> newYorkersAndNonNewYorkers = |
| Iterate.<b>partitionWith</b>(people, new Predicate<Person, String>() |
| { |
| public boolean accept(Person person, String state) |
| { |
| return person.getAddress().getState().getName().equals(state); |
| } |
| }, "New York"); |
| </pre></div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>5.0.</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="selectInstancesOf(java.lang.Iterable,java.lang.Class)">selectInstancesOf</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></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><T></span> <span class="memberName">selectInstancesOf</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><?> iterable, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang" class="externalLink">Class</a><T> clazz)</span></div> |
| <div class="block">Returns a new collection with only the elements that are instances of the Class <code>clazz</code>.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="count(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">count</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</span></div> |
| <div class="block">Returns the total number of elements that evaluate to true for the specified predicate. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| int count = Iterate.<b>count</b>(people, person -> person.getAddress().getState().getName().equals("New York")); |
| </pre> |
| <p> |
| Example using anonymous inner class |
| <pre> |
| int count = Iterate.<b>count</b>(people, new Predicate<Person>() |
| { |
| public boolean accept(Person person) |
| { |
| return person.getAddress().getState().getName().equals("New York"); |
| } |
| }); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="countWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,java.lang.Object)"> |
| <!-- --> |
| </a><a id="countWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,IV)">countWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| IV></span> <span class="returnType">int</span> <span class="memberName">countWith</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super IV> predicate, |
| IV injectedValue)</span></div> |
| <div class="block">Returns the total number of elements that evaluate to true for the specified predicate2 and parameter. |
| |
| <pre>e.g. |
| return Iterate.<b>countWith</b>(lastNames, Predicates2.equal(), "Smith"); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectIf(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function)">collectIf</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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">collectIf</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> function)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#collectIf(org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function)"><code>RichIterable.collectIf(Predicate, Function)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectIf(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function,java.util.Collection)"> |
| <!-- --> |
| </a><a id="collectIf(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function,R)">collectIf</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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">collectIf</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> function, |
| R target)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#collectIf(org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function,R)"><code>RichIterable.collectIf(Predicate, Function, Collection)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="select(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate,java.util.Collection)"> |
| <!-- --> |
| </a><a id="select(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate,R)">select</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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><T>></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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate, |
| R targetCollection)</span></div> |
| <div class="block">Same as the select method with two parameters but uses the specified target collection |
| <p> |
| Example using Java 8 lambda: |
| <pre> |
| MutableList<Person> selected = |
| Iterate.<b>select</b>(people, person -> person.person.getLastName().equals("Smith"), FastList.newList()); |
| </pre> |
| <p> |
| Example using anonymous inner class: |
| <pre> |
| MutableList<Person> selected = |
| Iterate.<b>select</b>(people, new Predicate<Person>() |
| { |
| public boolean accept(Person person) |
| { |
| return person.person.getLastName().equals("Smith"); |
| } |
| }, FastList.newList()); |
| </pre> |
| <p> |
| Example using Predicates factory: |
| <pre> |
| MutableList<Person> selected = Iterate.<b>select</b>(collection, Predicates.attributeEqual("lastName", "Smith"), FastList.newList()); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="selectWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,java.lang.Object,java.util.Collection)"> |
| <!-- --> |
| </a><a id="selectWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P,R)">selectWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| P,​ |
| 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><T>></span> <span class="returnType">R</span> <span class="memberName">selectWith</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter, |
| R targetCollection)</span></div> |
| <div class="block">Same as the selectWith method with two parameters but uses the specified target collection.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="take(java.lang.Iterable,int)">take</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></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><T></span> <span class="memberName">take</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| int count)</span></div> |
| <div class="block">Returns the first <code>count</code> elements of the iterable |
| or all the elements in the iterable if <code>count</code> is greater than the length of |
| the iterable.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>iterable</code> - the collection to take from.</dd> |
| <dd><code>count</code> - the number of items to take.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a new list with the items take from the given collection.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalArgumentException</a></code> - if <code>count</code> is less than zero</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="drop(java.lang.Iterable,int)">drop</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></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><T></span> <span class="memberName">drop</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| int count)</span></div> |
| <div class="block">Returns a collection without the first <code>count</code> elements of the iterable |
| or an empty iterable if the <code>count</code> is greater than the length of the iterable.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>iterable</code> - the collection to drop from.</dd> |
| <dd><code>count</code> - the number of items to drop.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a new list with the items dropped from the given collection.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalArgumentException</a></code> - if <code>count</code> is less than zero</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="reject(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">reject</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></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><T></span> <span class="memberName">reject</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</span></div> |
| <div class="block">Returns all elements of the iterable that evaluate to false for the specified predicate. |
| <p> |
| Example using Java 8 lambda: |
| <pre> |
| Collection<Person> rejected = |
| Iterate.<b>reject</b>(people, person -> person.person.getLastName().equals("Smith")); |
| </pre> |
| <p> |
| Example using anonymous inner class: |
| <pre> |
| Collection<Person> rejected = |
| Iterate.<b>reject</b>(people, |
| new Predicate<Person>() |
| { |
| public boolean accept(Person person) |
| { |
| return person.person.getLastName().equals("Smith"); |
| } |
| }); |
| </pre> |
| <p> |
| Example using Predicates factory: |
| <pre> |
| Collection<Person> rejected = |
| Iterate.<b>reject</b>(people, Predicates.attributeEqual("lastName", "Smith")); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="sortThis(java.util.List)"> |
| <!-- --> |
| </a><a id="sortThis(L)">sortThis</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParametersLong"><T extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a><? super T>,​ |
| L extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><T>></span> |
| <span class="returnType">L</span> <span class="memberName">sortThis</span>​(<span class="arguments">L list)</span></div> |
| <div class="block">SortThis is a mutating method. The List passed in is also returned.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="sortThis(java.util.List,java.util.Comparator)"> |
| <!-- --> |
| </a><a id="sortThis(L,java.util.Comparator)">sortThis</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| L extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><T>></span> <span class="returnType">L</span> <span class="memberName">sortThis</span>​(<span class="arguments">L list, |
| <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 T> comparator)</span></div> |
| <div class="block">SortThis is a mutating method. The List passed in is also returned.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="sortThis(java.util.List,org.eclipse.collections.api.block.predicate.Predicate2)"> |
| <!-- --> |
| </a><a id="sortThis(L,org.eclipse.collections.api.block.predicate.Predicate2)">sortThis</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| L extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><T>></span> <span class="returnType">L</span> <span class="memberName">sortThis</span>​(<span class="arguments">L list, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super T> predicate)</span></div> |
| <div class="block">SortThis is a mutating method. The List passed in is also returned.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="sortThisBy(java.util.List,org.eclipse.collections.api.block.function.Function)"> |
| <!-- --> |
| </a><a id="sortThisBy(L,org.eclipse.collections.api.block.function.Function)">sortThisBy</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParametersLong"><T,​ |
| V extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a><? super V>,​ |
| L extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><T>></span> |
| <span class="returnType">L</span> <span class="memberName">sortThisBy</span>​(<span class="arguments">L list, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> function)</span></div> |
| <div class="block">Sort the list by comparing an attribute defined by the function. |
| SortThisBy is a mutating method. The List passed in is also returned.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="removeIf(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">removeIf</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">boolean</span> <span class="memberName">removeIf</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</span></div> |
| <div class="block">Removes all elements from the iterable that evaluate to true for the specified predicate.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="removeIfWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,java.lang.Object)"> |
| <!-- --> |
| </a><a id="removeIfWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P)">removeIfWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| P></span> <span class="returnType">boolean</span> <span class="memberName">removeIfWith</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter)</span></div> |
| <div class="block">Removes all elements of the iterable that evaluate to true for the specified predicate2 and parameter.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="rejectWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,java.lang.Object)"> |
| <!-- --> |
| </a><a id="rejectWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P)">rejectWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| P></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><T></span> <span class="memberName">rejectWith</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter)</span></div> |
| <div class="block">Similar to <a href="#reject(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)"><code>reject(Iterable, Predicate)</code></a>, except with an evaluation parameter for the second generic argument in <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate"><code>Predicate2</code></a>. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| Collection<Person> rejected = |
| Iterate.<b>rejectWith</b>(people, (Person person, Integer age) -> person.getAge() >= age, Integer.valueOf(18)); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| Collection<Person> rejected = |
| Iterate.<b>rejectWith</b>(people, new Predicate2<Person, Integer>() |
| { |
| public boolean accept(Person person, Integer age) |
| { |
| return person.getAge() >= age; |
| } |
| }, Integer.valueOf(18)); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="reject(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate,java.util.Collection)"> |
| <!-- --> |
| </a><a id="reject(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate,R)">reject</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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><T>></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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate, |
| R targetCollection)</span></div> |
| <div class="block">Same as the reject method with one parameter but uses the specified target collection for the results. |
| <p> |
| Example using Java 8 lambda: |
| <pre> |
| MutableList<Person> rejected = |
| Iterate.<b>reject</b>(people, person -> person.person.getLastName().equals("Smith"), FastList.newList()); |
| </pre> |
| <p> |
| Example using anonymous inner class: |
| <pre> |
| MutableList<Person> rejected = |
| Iterate.<b>reject</b>( |
| people, |
| new Predicate<Person>() |
| { |
| public boolean accept(Person person) |
| { |
| return person.person.getLastName().equals("Smith"); |
| } |
| }, |
| FastList.newList()); |
| </pre> |
| <p> |
| Example using Predicates factory: |
| <pre> |
| MutableList<Person> rejected = |
| Iterate.<b>reject</b>(people, Predicates.attributeEqual("lastName", "Smith"), FastList.newList()); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="rejectWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,java.lang.Object,java.util.Collection)"> |
| <!-- --> |
| </a><a id="rejectWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P,R)">rejectWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| P,​ |
| 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><T>></span> <span class="returnType">R</span> <span class="memberName">rejectWith</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter, |
| R targetCollection)</span></div> |
| <div class="block">Same as the reject method with two parameters but uses the specified target collection.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="addAllTo(java.lang.Iterable,java.util.Collection)"> |
| <!-- --> |
| </a><a id="addAllTo(java.lang.Iterable,R)">addAllTo</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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><T>></span> <span class="returnType">R</span> <span class="memberName">addAllTo</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><? extends T> iterable, |
| R targetCollection)</span></div> |
| <div class="block">Add all elements from the source Iterable to the target collection, return the target collection.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="addAllIterable(java.lang.Iterable,java.util.Collection)">addAllIterable</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">boolean</span> <span class="memberName">addAllIterable</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><? extends T> iterable, |
| <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><T> targetCollection)</span></div> |
| <div class="block">Add all elements from the source Iterable to the target collection, returns true if any element was added.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="removeAllFrom(java.lang.Iterable,java.util.Collection)"> |
| <!-- --> |
| </a><a id="removeAllFrom(java.lang.Iterable,R)">removeAllFrom</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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><T>></span> <span class="returnType">R</span> <span class="memberName">removeAllFrom</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><? extends T> iterable, |
| R targetCollection)</span></div> |
| <div class="block">Remove all elements present in Iterable from the target collection, return the target collection.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="removeAllIterable(java.lang.Iterable,java.util.Collection)">removeAllIterable</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">boolean</span> <span class="memberName">removeAllIterable</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><? extends T> iterable, |
| <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><T> targetCollection)</span></div> |
| <div class="block">Remove all elements present in Iterable from the target collection, returns true if any element was removed.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)">collect</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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">collect</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> function)</span></div> |
| <div class="block">Returns a new collection with the results of applying the specified function for each element of the iterable. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| Collection<String> names = |
| Iterate.<b>collect</b>(people, person -> person.getFirstName() + " " + person.getLastName()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| Collection<String> names = |
| Iterate.<b>collect</b>( |
| people, |
| new Function<Person, String>() |
| { |
| public String valueOf(Person person) |
| { |
| return person.getFirstName() + " " + person.getLastName(); |
| } |
| }); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,java.util.Collection)"> |
| <!-- --> |
| </a><a id="collect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,R)">collect</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends A> function, |
| R targetCollection)</span></div> |
| <div class="block">Same as the <a href="#collect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)"><code>collect(Iterable, Function)</code></a> method with two parameters, except that the results are gathered into the specified |
| targetCollection |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| MutableList<String> names = |
| Iterate.<b>collect</b>(people, person -> person.getFirstName() + " " + person.getLastName(), FastList.newList()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| MutableList<String> names = |
| Iterate.<b>collect</b>( |
| people, |
| new Function<Person, String>() |
| { |
| public String valueOf(Person person) |
| { |
| return person.getFirstName() + " " + person.getLastName(); |
| } |
| }, |
| FastList.newList()); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectBoolean(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.BooleanFunction)">collectBoolean</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/BooleanFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">BooleanFunction</a><? super T> booleanFunction)</span></div> |
| <div class="block">Returns a new primitive <code>boolean</code> collection with the results of applying the specified booleanFunction for each element of the iterable. |
| <p> |
| Example using Java 8 lambda: |
| <pre> |
| MutableBooleanCollection voters = |
| Iterable.<b>collectBoolean</b>(people, person -> person.canVote()); |
| </pre> |
| <p> |
| Example using anonymous inner class: |
| <pre> |
| MutableBooleanCollection voters = |
| Iterate.<b>collectBoolean</b>( |
| people, |
| new BooleanFunction<Person>() |
| { |
| public boolean booleanValueOf(Person person) |
| { |
| return person.canVote(); |
| } |
| }); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectBoolean(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.BooleanFunction,org.eclipse.collections.api.collection.primitive.MutableBooleanCollection)"> |
| <!-- --> |
| </a><a id="collectBoolean(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.BooleanFunction,R)">collectBoolean</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/BooleanFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">BooleanFunction</a><? super T> booleanFunction, |
| R target)</span></div> |
| <div class="block">Same as <a href="#collectBoolean(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.BooleanFunction)"><code>collectBoolean(Iterable, BooleanFunction)</code></a>, except that the results are gathered into the specified <code>target</code> |
| collection. |
| <p> |
| Example using Java 8 lambda: |
| <pre> |
| BooleanArrayList voters = |
| Iterable.<b>collectBoolean</b>(people, person -> person.canVote(), new BooleanArrayList()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| BooleanArrayList voters = |
| Iterate.<b>collectBoolean</b>( |
| people, |
| new BooleanFunction<Person>() |
| { |
| public boolean booleanValueOf(Person person) |
| { |
| return person.canVote(); |
| } |
| }, |
| new BooleanArrayList()); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectByte(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.ByteFunction)">collectByte</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/ByteFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ByteFunction</a><? super T> byteFunction)</span></div> |
| <div class="block">Returns a new <code>byte</code> collection with the results of applying the specified byteFunction for each element of the iterable. |
| <p> |
| Example using Java 8 lambda: |
| <pre> |
| MutableByteCollection bytes = |
| Iterate.<b>collectByte</b>(people, person -> person.getCode()); |
| </pre> |
| <p> |
| Example using anonymous inner class: |
| <pre> |
| MutableByteCollection bytes = |
| Iterate.<b>collectByte</b>( |
| people, |
| new ByteFunction<Person>() |
| { |
| public byte byteValueOf(Person person) |
| { |
| return person.getCode(); |
| } |
| }); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectByte(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.ByteFunction,org.eclipse.collections.api.collection.primitive.MutableByteCollection)"> |
| <!-- --> |
| </a><a id="collectByte(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.ByteFunction,R)">collectByte</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/ByteFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ByteFunction</a><? super T> byteFunction, |
| R target)</span></div> |
| <div class="block">Same as <a href="#collectByte(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.ByteFunction)"><code>collectByte(Iterable, ByteFunction)</code></a>, except that the results are gathered into the specified <code>target</code> |
| collection. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| ByteArrayList bytes = |
| Iterate.<b>collectByte</b>(people, person -> person.getCode(), new ByteArrayList()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| ByteArrayList bytes = |
| Iterate.<b>collectByte</b>( |
| people, |
| new ByteFunction<Person>() |
| { |
| public byte byteValueOf(Person person) |
| { |
| return person.getCode(); |
| } |
| }, |
| new ByteArrayList()); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectChar(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.CharFunction)">collectChar</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/CharFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">CharFunction</a><? super T> charFunction)</span></div> |
| <div class="block">Returns a new <code>char</code> collection with the results of applying the specified charFunction for each element of the iterable. |
| <p> |
| Example using Java 8 lambda: |
| <pre> |
| MutableCharCollection chars = |
| Iterate.<b>collectChar</b>(people, person -> person.getMiddleInitial()); |
| </pre> |
| <p> |
| Example using anonymous inner class: |
| <pre> |
| MutableCharCollection chars = |
| Iterate.<b>collectChar</b>( |
| people, |
| new CharFunction<Person>() |
| { |
| public char charValueOf(Person person) |
| { |
| return person.getMiddleInitial(); |
| } |
| }); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectChar(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.CharFunction,org.eclipse.collections.api.collection.primitive.MutableCharCollection)"> |
| <!-- --> |
| </a><a id="collectChar(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.CharFunction,R)">collectChar</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/CharFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">CharFunction</a><? super T> charFunction, |
| R target)</span></div> |
| <div class="block">Same as <a href="#collectChar(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.CharFunction)"><code>collectChar(Iterable, CharFunction)</code></a>, except that the results are gathered into the specified <code>target</code> |
| collection. |
| |
| <pre> |
| CharArrayList chars = |
| Iterate.<b>collectChar</b>(people, person -> person.getMiddleInitial()); |
| </pre> |
| <p> |
| Example using anonymous inner class: |
| <pre> |
| CharArrayList chars = |
| Iterate.<b>collectChar</b>( |
| people, |
| new CharFunction<Person>() |
| { |
| public char charValueOf(Person person) |
| { |
| return person.getMiddleInitial(); |
| } |
| }, |
| new CharArrayList()); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectDouble(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.DoubleFunction)">collectDouble</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a><? super T> doubleFunction)</span></div> |
| <div class="block">Returns a new <code>double</code> collection with the results of applying the specified doubleFunction for each element of the iterable. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| MutableDoubleCollection doubles = |
| Iterate.<b>collectDouble</b>(people, person -> person.getMilesFromNorthPole()); |
| </pre> |
| Example using an anonymous inner class: |
| <pre> |
| MutableDoubleCollection doubles = |
| Iterate.<b>collectDouble</b>(people, |
| new DoubleFunction<Person>() |
| { |
| public double doubleValueOf(Person person) |
| { |
| return person.getMilesFromNorthPole(); |
| } |
| }); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectDouble(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.DoubleFunction,org.eclipse.collections.api.collection.primitive.MutableDoubleCollection)"> |
| <!-- --> |
| </a><a id="collectDouble(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.DoubleFunction,R)">collectDouble</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a><? super T> doubleFunction, |
| R target)</span></div> |
| <div class="block">Same as <a href="#collectDouble(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.DoubleFunction)"><code>collectDouble(Iterable, DoubleFunction)</code></a>, except that the results are gathered into the specified <code>target</code> |
| collection. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| DoubleArrayList doubles = |
| Iterate.<b>collectDouble</b>(people, person -> person.getMilesFromNorthPole()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| DoubleArrayList doubles = |
| Iterate.<b>collectDouble</b>(people, |
| new DoubleFunction<Person>() |
| { |
| public double doubleValueOf(Person person) |
| { |
| return person.getMilesFromNorthPole(); |
| } |
| }, new DoubleArrayList()); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectFloat(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.FloatFunction)">collectFloat</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a><? super T> floatFunction)</span></div> |
| <div class="block">Returns a new <code>float</code> collection with the results of applying the specified floatFunction for each element of the iterable. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| MutableFloatCollection floats = |
| Iterate.<b>collectFloat</b>(people, person -> person.getHeightInInches()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| MutableFloatCollection floats = |
| Iterate.<b>collectFloat</b>(people, |
| new FloatFunction<Person>() |
| { |
| public float floatValueOf(Person person) |
| { |
| return person.getHeightInInches(); |
| } |
| }); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectFloat(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.FloatFunction,org.eclipse.collections.api.collection.primitive.MutableFloatCollection)"> |
| <!-- --> |
| </a><a id="collectFloat(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.FloatFunction,R)">collectFloat</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a><? super T> floatFunction, |
| R target)</span></div> |
| <div class="block">Same as <a href="#collectFloat(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.FloatFunction)"><code>collectFloat(Iterable, FloatFunction)</code></a>, except that the results are gathered into the specified <code>target</code> |
| collection. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| FloatArrayList floats = |
| Iterate.<b>collectFloat</b>(people, person -> person.getHeightInInches(), new FloatArrayList()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| FloatArrayList floats = |
| Iterate.<b>collectFloat</b>(people, |
| new FloatFunction<Person>() |
| { |
| public float floatValueOf(Person person) |
| { |
| return person.getHeightInInches(); |
| } |
| }, new FloatArrayList()); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectInt(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.IntFunction)">collectInt</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a><? super T> intFunction)</span></div> |
| <div class="block">Returns a new <code>int</code> collection with the results of applying the specified intFunction for each element of the iterable. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| MutableIntCollection ages = |
| Iterate.<b>collectInt</b>(people, person -> person.getAge()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| MutableIntCollection ages = |
| Iterate.<b>collectInt</b>(people, |
| new IntFunction<Person>() |
| { |
| public int intValueOf(Person person) |
| { |
| return person.getAge(); |
| } |
| }); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectInt(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.IntFunction,org.eclipse.collections.api.collection.primitive.MutableIntCollection)"> |
| <!-- --> |
| </a><a id="collectInt(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.IntFunction,R)">collectInt</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a><? super T> intFunction, |
| R target)</span></div> |
| <div class="block">Same as <a href="#collectInt(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.IntFunction)"><code>collectInt(Iterable, IntFunction)</code></a>, except that the results are gathered into the specified <code>target</code> |
| collection. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| IntArrayList ages = |
| Iterate.<b>collectInt</b>(people, person -> person.getAge(), new IntArrayList()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| IntArrayList ages = |
| Iterate.<b>collectInt</b>(people, |
| new IntFunction<Person>() |
| { |
| public int intValueOf(Person person) |
| { |
| return person.getAge(); |
| } |
| }, new IntArrayList()); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectLong(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.LongFunction)">collectLong</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a><? super T> longFunction)</span></div> |
| <div class="block">Returns a new <code>long</code> collection with the results of applying the specified longFunction for each element of the iterable. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| MutableLongCollection longs = |
| Iterate.<b>collectLong</b>(people, person -> person.getGuid()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| MutableLongCollection longs = |
| Iterate.<b>collectLong</b>(people, |
| new LongFunction<Person>() |
| { |
| public long longValueOf(Person person) |
| { |
| return person.getGuid(); |
| } |
| }); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectLong(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.LongFunction,org.eclipse.collections.api.collection.primitive.MutableLongCollection)"> |
| <!-- --> |
| </a><a id="collectLong(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.LongFunction,R)">collectLong</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a><? super T> longFunction, |
| R target)</span></div> |
| <div class="block">Same as <a href="#collectLong(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.LongFunction)"><code>collectLong(Iterable, LongFunction)</code></a>, except that the results are gathered into the specified <code>target</code> |
| collection. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| LongArrayList longs = |
| Iterate.<b>collectLong</b>(people, person -> person.getGuid(), new LongArrayList()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| LongArrayList longs = |
| Iterate.<b>collectLong</b>(people, |
| new LongFunction<Person>() |
| { |
| public long longValueOf(Person person) |
| { |
| return person.getGuid(); |
| } |
| }, new LongArrayList()); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectShort(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.ShortFunction)">collectShort</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/ShortFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ShortFunction</a><? super T> shortFunction)</span></div> |
| <div class="block">Returns a new <code>short</code> collection with the results of applying the specified shortFunction for each element of the iterable. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| MutableShortCollection shorts = |
| Iterate.<b>collectShort</b>(people, person -> person.getNumberOfJunkMailItemsReceivedPerMonth()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| MutableShortCollection shorts = |
| Iterate.<b>collectShort</b>(people, |
| new ShortFunction<Person>() |
| { |
| public short shortValueOf(Person person) |
| { |
| return person.getNumberOfJunkMailItemsReceivedPerMonth(); |
| } |
| }); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectShort(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.ShortFunction,org.eclipse.collections.api.collection.primitive.MutableShortCollection)"> |
| <!-- --> |
| </a><a id="collectShort(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.ShortFunction,R)">collectShort</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/ShortFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ShortFunction</a><? super T> shortFunction, |
| R target)</span></div> |
| <div class="block">Same as <a href="#collectShort(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.ShortFunction)"><code>collectShort(Iterable, ShortFunction)</code></a>, except that the results are gathered into the specified <code>target</code> |
| collection. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| ShortArrayList shorts = |
| Iterate.<b>collectShort</b>(people, person -> person.getNumberOfJunkMailItemsReceivedPerMonth(), new ShortArrayList()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| ShortArrayList shorts = |
| Iterate.<b>collectShort</b>(people, |
| new ShortFunction<Person>() |
| { |
| public short shortValueOf(Person person) |
| { |
| return person.getNumberOfJunkMailItemsReceivedPerMonth(); |
| } |
| }, new ShortArrayList()); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="flatCollect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)">flatCollect</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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">flatCollect</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><V>> function)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#flatCollect(org.eclipse.collections.api.block.function.Function)"><code>RichIterable.flatCollect(Function)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="flatCollect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,java.util.Collection)"> |
| <!-- --> |
| </a><a id="flatCollect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,R)">flatCollect</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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">flatCollect</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><A>> function, |
| R targetCollection)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#flatCollect(org.eclipse.collections.api.block.function.Function,R)"><code>RichIterable.flatCollect(Function, Collection)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectWith(java.lang.Iterable,org.eclipse.collections.api.block.function.Function2,java.lang.Object)"> |
| <!-- --> |
| </a><a id="collectWith(java.lang.Iterable,org.eclipse.collections.api.block.function.Function2,P)">collectWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| P,​ |
| A></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><A></span> <span class="memberName">collectWith</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super T,​? super P,​? extends A> function, |
| P parameter)</span></div> |
| <div class="block">Same as collect with a Function2 and specified parameter which is passed to the function.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectWith(java.lang.Iterable,org.eclipse.collections.api.block.function.Function2,java.lang.Object,java.util.Collection)"> |
| <!-- --> |
| </a><a id="collectWith(java.lang.Iterable,org.eclipse.collections.api.block.function.Function2,P,R)">collectWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| P,​ |
| 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">collectWith</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super T,​? super P,​? extends A> function, |
| P parameter, |
| R targetCollection)</span></div> |
| <div class="block">Same as collectWith but with a targetCollection parameter to gather the results.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="flatten(java.lang.Iterable)">flatten</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></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><T></span> <span class="memberName">flatten</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T>> iterable)</span></div> |
| <div class="block">Flattens a collection of collections into one "flat" collection.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>iterable</code> - A list of lists, e.g. { { 1, 2, 3 }, { 4, 5 }, { 6 } }</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>A flattened list, e.g. { 1, 2, 3, 4, 5, 6 }</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="flatten(java.lang.Iterable,java.util.Collection)"> |
| <!-- --> |
| </a><a id="flatten(java.lang.Iterable,R)">flatten</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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><T>></span> <span class="returnType">R</span> <span class="memberName">flatten</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T>> iterable, |
| R targetCollection)</span></div> |
| <div class="block">Same as <a href="#flatten(java.lang.Iterable)"><code>flatten(Iterable)</code></a> except that the results are gathered into the specified targetCollection.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="getFirst(java.lang.Iterable)">getFirst</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">T</span> <span class="memberName">getFirst</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable)</span></div> |
| <div class="block">Returns the first element of a collection. In the case of a List it is the element at the first index. In the |
| case of any other Collection, it is the first element that would be returned during an iteration. If the |
| Collection is empty, the result is <code>null</code>. |
| <p> |
| WARNING!!! The order of Sets are not guaranteed (except for TreeSets and other Ordered Set implementations), so |
| if you use this method, the first element could be any element from the Set.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalArgumentException</a></code> - if the Collection is null</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="isEmpty(java.lang.Iterable)">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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><?> iterable)</span></div> |
| <div class="block">A null-safe check on a collection to see if it isEmpty. A null collection results in a true.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="notEmpty(java.lang.Iterable)">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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><?> iterable)</span></div> |
| <div class="block">A null-safe check on a collection to see if it is notEmpty. A null collection results in a false.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="getLast(java.lang.Iterable)">getLast</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">T</span> <span class="memberName">getLast</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable)</span></div> |
| <div class="block">Returns the last element of a collection. In the case of a List it is the element at the last index. In the |
| case of any other Collection, it is the last element that would be returned during an iteration. If the |
| Collection is empty, the result is <code>null</code>. |
| <p> |
| WARNING!!! The order of Sets are not guaranteed (except for TreeSets and other Ordered Set implementations), so |
| if you use this method, the last element could be any element from the Set.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalArgumentException</a></code> - if the Collection is null</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="detect(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">detect</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">T</span> <span class="memberName">detect</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</span></div> |
| <div class="block">Returns the first element of the iterable that evaluates to true for the specified predicate, or null if |
| no element evaluates to true. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| Person person = Iterate.<b>detect</b>(people, person -> person.getFirstName().equals("John") && person.getLastName().equals("Smith")); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| Person person = Iterate.<b>detect</b>(people, new Predicate<Person>() |
| { |
| public boolean accept(Person person) |
| { |
| return person.getFirstName().equals("John") && person.getLastName().equals("Smith"); |
| } |
| }); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="detectWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,java.lang.Object)"> |
| <!-- --> |
| </a><a id="detectWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P)">detectWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| P></span> <span class="returnType">T</span> <span class="memberName">detectWith</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter)</span></div> |
| <div class="block">Returns the first element of the iterable that evaluates to true for the specified predicate2 and parameter, |
| or null if no element evaluates to true. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| Person person = Iterate.<b>detectWith</b>(people, (person, fullName) -> person.getFullName().equals(fullName), "John Smith"); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| Person person = Iterate.<b>detectWith</b>(people, new Predicate2<Person, String>() |
| { |
| public boolean accept(Person person, String fullName) |
| { |
| return person.getFullName().equals(fullName); |
| } |
| }, "John Smith"); |
| </pre></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="detectOptional(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">detectOptional</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></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><T></span> <span class="memberName">detectOptional</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</span></div> |
| <div class="block">Returns the first element of the iterable that evaluates to true for the specified predicate as an Optional. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| Optional<Person> person = |
| Iterate.<b>detectOptional</b>(people, |
| person -> person.getFirstName().equals("John") && person.getLastName().equals("Smith")); |
| </pre> |
| <p></div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the element selected is null</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>8.0</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="detectWithOptional(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,java.lang.Object)"> |
| <!-- --> |
| </a><a id="detectWithOptional(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P)">detectWithOptional</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| P></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><T></span> <span class="memberName">detectWithOptional</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter)</span></div> |
| <div class="block">Returns the first element of the iterable that evaluates to true for the specified predicate2 and parameter as |
| an Optional. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| Optional<Person> person = |
| Iterate.<b>detectWithOptional</b>(people, |
| (person, fullName) -> person.getFullName().equals(fullName), "John Smith"); |
| </pre> |
| <p></div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang" class="externalLink">NullPointerException</a></code> - if the element selected is null</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>8.0</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="detectIfNone(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate,java.lang.Object)"> |
| <!-- --> |
| </a><a id="detectIfNone(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate,T)">detectIfNone</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">T</span> <span class="memberName">detectIfNone</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate, |
| T ifNone)</span></div> |
| <div class="block">Returns the first element of the iterable that evaluates to true for the specified predicate, or returns the |
| result ifNone if no element evaluates to true.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="detectWithIfNone(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,java.lang.Object,java.lang.Object)"> |
| <!-- --> |
| </a><a id="detectWithIfNone(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P,T)">detectWithIfNone</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| P></span> <span class="returnType">T</span> <span class="memberName">detectWithIfNone</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter, |
| T ifNone)</span></div> |
| <div class="block">Returns the first element of the iterable that evaluates to true for the specified predicate2 and parameter, |
| or returns the result ifNone if no element evaluates to true.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="detectIndex(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">detectIndex</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">int</span> <span class="memberName">detectIndex</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</span></div> |
| <div class="block">Searches for the first occurrence where the predicate evaluates to true, returns -1 if the predicate does not evaluate to true.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="detectIndexWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,java.lang.Object)"> |
| <!-- --> |
| </a><a id="detectIndexWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P)">detectIndexWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| P></span> <span class="returnType">int</span> <span class="memberName">detectIndexWith</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter)</span></div> |
| <div class="block">Searches for the first occurrence where the predicate2 and parameter evaluates to true, returns -1 if the predicate2 and parameter do not evaluate to true.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="reduceInPlace(java.lang.Iterable,java.util.stream.Collector)">reduceInPlace</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| A,​ |
| R></span> <span class="returnType">R</span> <span class="memberName">reduceInPlace</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/stream/Collector.html?is-external=true" title="class or interface in java.util.stream" class="externalLink">Collector</a><? super T,​A,​R> collector)</span></div> |
| <div class="block">This method produces the equivalent result as <a href="https://docs.oracle.com/javase/8/docs/api/java/util/stream/Stream.html?is-external=true#collect(java.util.stream.Collector)" title="class or interface in java.util.stream" class="externalLink"><code>Stream.collect(Collector)</code></a>.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>8.0</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="reduceInPlace(java.lang.Iterable,java.util.function.Supplier,java.util.function.BiConsumer)">reduceInPlace</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| R></span> <span class="returnType">R</span> <span class="memberName">reduceInPlace</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Supplier.html?is-external=true" title="class or interface in java.util.function" class="externalLink">Supplier</a><R> supplier, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/BiConsumer.html?is-external=true" title="class or interface in java.util.function" class="externalLink">BiConsumer</a><R,​? super T> accumulator)</span></div> |
| <div class="block">This method produces the equivalent result as <a href="https://docs.oracle.com/javase/8/docs/api/java/util/stream/Stream.html?is-external=true#collect(java.util.function.Supplier,java.util.function.BiConsumer,java.util.function.BiConsumer)" title="class or interface in java.util.stream" class="externalLink"><code>Stream.collect(Supplier, BiConsumer, BiConsumer)</code></a>. |
| The combiner used in collect is unnecessary in the serial case, so is not included in the API.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>8.0</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="injectInto(java.lang.Object,java.lang.Iterable,org.eclipse.collections.api.block.function.Function2)"> |
| <!-- --> |
| </a><a id="injectInto(IV,java.lang.Iterable,org.eclipse.collections.api.block.function.Function2)">injectInto</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super IV,​? super T,​? extends IV> function)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#injectInto(IV,org.eclipse.collections.api.block.function.Function2)"><code>RichIterable.injectInto(Object, Function2)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="injectInto(int,java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.IntObjectToIntFunction)">injectInto</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">int</span> <span class="memberName">injectInto</span>​(<span class="arguments">int injectValue, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/IntObjectToIntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntObjectToIntFunction</a><? super T> function)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#injectInto(int,org.eclipse.collections.api.block.function.primitive.IntObjectToIntFunction)"><code>RichIterable.injectInto(int, IntObjectToIntFunction)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="injectInto(long,java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.LongObjectToLongFunction)">injectInto</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">long</span> <span class="memberName">injectInto</span>​(<span class="arguments">long injectValue, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/LongObjectToLongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongObjectToLongFunction</a><? super T> function)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#injectInto(long,org.eclipse.collections.api.block.function.primitive.LongObjectToLongFunction)"><code>RichIterable.injectInto(long, LongObjectToLongFunction)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="injectInto(double,java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.DoubleObjectToDoubleFunction)">injectInto</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">double</span> <span class="memberName">injectInto</span>​(<span class="arguments">double injectValue, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/DoubleObjectToDoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleObjectToDoubleFunction</a><? super T> function)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#injectInto(double,org.eclipse.collections.api.block.function.primitive.DoubleObjectToDoubleFunction)"><code>RichIterable.injectInto(double, DoubleObjectToDoubleFunction)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="injectInto(float,java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.FloatObjectToFloatFunction)">injectInto</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">float</span> <span class="memberName">injectInto</span>​(<span class="arguments">float injectValue, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/FloatObjectToFloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatObjectToFloatFunction</a><? super T> function)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#injectInto(float,org.eclipse.collections.api.block.function.primitive.FloatObjectToFloatFunction)"><code>RichIterable.injectInto(float, FloatObjectToFloatFunction)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="sumOfInt(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.IntFunction)">sumOfInt</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">long</span> <span class="memberName">sumOfInt</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a><? super T> function)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#sumOfInt(org.eclipse.collections.api.block.function.primitive.IntFunction)"><code>RichIterable.sumOfInt(IntFunction)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="sumOfLong(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.LongFunction)">sumOfLong</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">long</span> <span class="memberName">sumOfLong</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a><? super T> function)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#sumOfLong(org.eclipse.collections.api.block.function.primitive.LongFunction)"><code>RichIterable.sumOfLong(LongFunction)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="sumOfFloat(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.FloatFunction)">sumOfFloat</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">double</span> <span class="memberName">sumOfFloat</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a><? super T> function)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#sumOfFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction)"><code>RichIterable.sumOfFloat(FloatFunction)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="sumOfDouble(java.lang.Iterable,org.eclipse.collections.api.block.function.primitive.DoubleFunction)">sumOfDouble</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">double</span> <span class="memberName">sumOfDouble</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a><? super T> function)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#sumOfDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction)"><code>RichIterable.sumOfDouble(DoubleFunction)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="sumOfBigDecimal(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)">sumOfBigDecimal</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType"><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math" class="externalLink">BigDecimal</a></span> <span class="memberName">sumOfBigDecimal</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math" class="externalLink">BigDecimal</a>> function)</span></div> |
| <div class="block">Returns the BigDecimal sum of the result of applying the function to each element of the iterable.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>6.0</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="sumOfBigInteger(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)">sumOfBigInteger</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType"><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math" class="externalLink">BigInteger</a></span> <span class="memberName">sumOfBigInteger</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math" class="externalLink">BigInteger</a>> function)</span></div> |
| <div class="block">Returns the BigInteger sum of the result of applying the function to each element of the iterable.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>6.0</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="sumByBigDecimal(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">sumByBigDecimal</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><V,​ |
| T></span> <span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><V,​<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math" class="externalLink">BigDecimal</a>></span> <span class="memberName">sumByBigDecimal</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><T,​V> groupBy, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math" class="externalLink">BigDecimal</a>> function)</span></div> |
| <div class="block">Groups and sums the values of the iterable using the two specified functions.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>6.0</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="sumByBigInteger(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">sumByBigInteger</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><V,​ |
| T></span> <span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><V,​<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math" class="externalLink">BigInteger</a>></span> <span class="memberName">sumByBigInteger</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><T,​V> groupBy, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math" class="externalLink">BigInteger</a>> function)</span></div> |
| <div class="block">Groups and sums the values of the iterable using the two specified functions.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>6.0</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="sumByInt(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.primitive.IntFunction)">sumByInt</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| V></span> <span class="returnType"><a href="../../api/map/primitive/ObjectLongMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectLongMap</a><V></span> <span class="memberName">sumByInt</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><T,​V> groupBy, |
| <a href="../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a><? super T> function)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#sumByInt(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.primitive.IntFunction)"><code>RichIterable.sumByInt(Function, IntFunction)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="sumByLong(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.primitive.LongFunction)">sumByLong</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| V></span> <span class="returnType"><a href="../../api/map/primitive/ObjectLongMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectLongMap</a><V></span> <span class="memberName">sumByLong</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><T,​V> groupBy, |
| <a href="../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a><? super T> function)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#sumByLong(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.primitive.LongFunction)"><code>RichIterable.sumByLong(Function, LongFunction)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="sumByFloat(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.primitive.FloatFunction)">sumByFloat</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| V></span> <span class="returnType"><a href="../../api/map/primitive/ObjectDoubleMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectDoubleMap</a><V></span> <span class="memberName">sumByFloat</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><T,​V> groupBy, |
| <a href="../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a><? super T> function)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#sumOfFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction)"><code>RichIterable.sumOfFloat(FloatFunction)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="sumByDouble(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.primitive.DoubleFunction)">sumByDouble</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| V></span> <span class="returnType"><a href="../../api/map/primitive/ObjectDoubleMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectDoubleMap</a><V></span> <span class="memberName">sumByDouble</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><T,​V> groupBy, |
| <a href="../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a><? super T> function)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#sumOfDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction)"><code>RichIterable.sumOfDouble(DoubleFunction)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="injectIntoWith(java.lang.Object,java.lang.Iterable,org.eclipse.collections.api.block.function.Function3,java.lang.Object)"> |
| <!-- --> |
| </a><a id="injectIntoWith(IV,java.lang.Iterable,org.eclipse.collections.api.block.function.Function3,P)">injectIntoWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| IV,​ |
| P></span> <span class="returnType">IV</span> <span class="memberName">injectIntoWith</span>​(<span class="arguments">IV injectValue, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function3.html" title="interface in org.eclipse.collections.api.block.function">Function3</a><? super IV,​? super T,​? super P,​? extends IV> function, |
| P parameter)</span></div> |
| <div class="block">Similar to <a href="#injectInto(IV,java.lang.Iterable,org.eclipse.collections.api.block.function.Function2)"><code>injectInto(Object, Iterable, Function2)</code></a>, except with a parameter is used as third generic argument in function3.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="anySatisfy(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">anySatisfy</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</span></div> |
| <div class="block">Returns true if the predicate evaluates to true for any element of the iterable. |
| Returns false if the iterable is empty or if no elements return true for the predicate.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="anySatisfyWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,java.lang.Object)"> |
| <!-- --> |
| </a><a id="anySatisfyWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P)">anySatisfyWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| P></span> <span class="returnType">boolean</span> <span class="memberName">anySatisfyWith</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter)</span></div> |
| <div class="block">Returns true if the predicate2 and parameter evaluates to true for any element of the iterable. |
| Returns false if the iterable is empty or if no elements return true for the predicate2.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="allSatisfy(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">allSatisfy</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</span></div> |
| <div class="block">Returns true if the predicate evaluates to true for every element of the iterable, or returns false. |
| Returns true if the iterable is empty.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="allSatisfyWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,java.lang.Object)"> |
| <!-- --> |
| </a><a id="allSatisfyWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P)">allSatisfyWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| P></span> <span class="returnType">boolean</span> <span class="memberName">allSatisfyWith</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter)</span></div> |
| <div class="block">Returns true if the predicate evaluates to true for every element of the iterable, or returns false.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="noneSatisfy(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate)">noneSatisfy</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></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/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super T> predicate)</span></div> |
| <div class="block">Returns true if the predicate evaluates to false for every element of the iterable, or returns false. |
| Returns true if the iterable is empty.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="noneSatisfyWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,java.lang.Object)"> |
| <!-- --> |
| </a><a id="noneSatisfyWith(java.lang.Iterable,org.eclipse.collections.api.block.predicate.Predicate2,P)">noneSatisfyWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| P></span> <span class="returnType">boolean</span> <span class="memberName">noneSatisfyWith</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super T,​? super P> predicate, |
| P parameter)</span></div> |
| <div class="block">Returns true if the predicate evaluates to false for every element of the iterable, or returns false. |
| Returns true if the iterable is empty.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toMap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)">toMap</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| K></span> <span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><K,​T></span> <span class="memberName">toMap</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends K> keyFunction)</span></div> |
| <div class="block">Iterate over the specified collection applying the specified Function to each element to calculate |
| a key and return the results as a Map.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toMap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">toMap</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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">toMap</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends K> keyFunction, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> valueFunction)</span></div> |
| <div class="block">Iterate over the specified collection applying the specified Functions to each element to calculate |
| a key and value, and return the results as a Map.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toMap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,java.util.Map)"> |
| <!-- --> |
| </a><a id="toMap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)">toMap</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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">toMap</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends K> keyFunction, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> valueFunction, |
| R target)</span></div> |
| <div class="block">Iterate over the specified collection applying the specified Functions to each element to calculate |
| a key and value, and return the results in the specified Map instance.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="addToMap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,java.util.Map)"> |
| <!-- --> |
| </a><a id="addToMap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,M)">addToMap</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| K,​ |
| V,​ |
| M 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">M</span> <span class="memberName">addToMap</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends K> keyFunction, |
| M map)</span></div> |
| <div class="block">Iterate over the specified collection applying a specific Function to each element to calculate a |
| key, and add the results to input Map. |
| This method will mutate the input Map.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="addToMap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,java.util.Map)"> |
| <!-- --> |
| </a><a id="addToMap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,M)">addToMap</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| K,​ |
| V,​ |
| M 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">M</span> <span class="memberName">addToMap</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends K> keyFunction, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> valueFunction, |
| M map)</span></div> |
| <div class="block">Iterate over the specified collection applying the specified Functions to each element to calculate |
| a key and value, and add the results to input Map. |
| This method will mutate the input Map.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toMultimap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.multimap.MutableMultimap)"> |
| <!-- --> |
| </a><a id="toMultimap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)">toMultimap</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| K,​ |
| V,​ |
| R extends <a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a><K,​ |
| V>></span> |
| <span class="returnType">R</span> <span class="memberName">toMultimap</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends K> keyFunction, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><V>> valuesFunction, |
| R targetMultimap)</span></div> |
| <div class="block">Iterate over the specified collection applying the specified Functions to each element to calculate |
| a key and values, add the results to <code>targetMultimap</code> and return the <code>targetMultimap</code>. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| MutableMultimap<String, String> multimap = |
| Iterate.<b>toMultimap</b>(integers, each -> "key:" + each, each -> Lists.mutable.of("value:" + each), FastListMultimap.newMultimap()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| MutableMultimap<String, String> multimap = |
| Iterate.<b>groupByAndCollect</b>(integers, |
| new Function<Integer, String>() |
| { |
| public String valueOf(Integer each) |
| { |
| return "key:" + each; |
| } |
| }, new Function<Integer, Iterable<String>>() |
| { |
| public Iterable<String> valueOf(Integer each) |
| { |
| return Lists.mutable.of("value:" + each); |
| } |
| }, FastListMultimap.newMultimap()); |
| </pre></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="#groupBy(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)"><code>when only keys get transformed</code></a>, |
| <a href="#groupByEach(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)"><code>when only keys get transformed and Function returns multiple keys</code></a>, |
| <a href="#groupByAndCollect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)"><code>when both keys and values get transformed and Function returns single key and value</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toSortedList(java.lang.Iterable)">toSortedList</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a><? super T>></span> |
| <span class="returnType"><a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><T></span> <span class="memberName">toSortedList</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable)</span></div> |
| <div class="block">Return the specified collection as a sorted List.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toSortedList(java.lang.Iterable,java.util.Comparator)">toSortedList</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType"><a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><T></span> <span class="memberName">toSortedList</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <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 T> comparator)</span></div> |
| <div class="block">Return the specified collection as a sorted List using the specified Comparator.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="sizeOf(java.lang.Iterable)">sizeOf</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="returnType">int</span> <span class="memberName">sizeOf</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><?> iterable)</span></div> |
| <div class="block">Returns the size of an iterable. |
| In the case of Collections and RichIterables, the method size is called. |
| All other iterables will force a complete iteration to happen, which can be unnecessarily costly.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="contains(java.lang.Iterable,java.lang.Object)">contains</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="returnType">boolean</span> <span class="memberName">contains</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><?> iterable, |
| <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> value)</span></div> |
| <div class="block">Returns true if the iterable contains the value. |
| In the case of Collections and RichIterables, the method contains is called. |
| All other iterables will force a complete iteration to happen, which can be unnecessarily costly.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toArray(java.lang.Iterable)">toArray</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType"><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>[]</span> <span class="memberName">toArray</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable)</span></div> |
| <div class="block">Converts the specified iterable to an array.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toArray(java.lang.Iterable,java.lang.Object[])"> |
| <!-- --> |
| </a><a id="toArray(java.lang.Iterable,T[])">toArray</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">T[]</span> <span class="memberName">toArray</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><? extends T> iterable, |
| T[] target)</span></div> |
| <div class="block">Copies the specified iterable into the specified array.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="groupBy(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)">groupBy</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| V></span> <span class="returnType"><a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a><V,​T></span> <span class="memberName">groupBy</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> function)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#groupBy(org.eclipse.collections.api.block.function.Function)"><code>RichIterable.groupBy(Function)</code></a>, |
| <a href="#groupByEach(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)"><code>when function returns multiple keys</code></a>, |
| <a href="#groupByAndCollect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)"><code>when both keys and values get transformed</code></a>, |
| <a href="#toMultimap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)"><code>when both keys and values get transformed and Function returns multiple values</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="groupBy(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.multimap.MutableMultimap)"> |
| <!-- --> |
| </a><a id="groupBy(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,R)">groupBy</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| V,​ |
| R extends <a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a><V,​ |
| T>></span> |
| <span class="returnType">R</span> <span class="memberName">groupBy</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> function, |
| R targetMultimap)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#groupBy(org.eclipse.collections.api.block.function.Function,R)"><code>RichIterable.groupBy(Function, MutableMultimap)</code></a>, |
| <a href="#groupByEach(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,R)"><code>when function returns multiple keys</code></a>, |
| <a href="#groupByAndCollect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)"><code>when both keys and values get transformed</code></a>, |
| <a href="#toMultimap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)"><code>when both keys and values get transformed and Function returns multiple values</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="aggregateInPlaceBy(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function0,org.eclipse.collections.api.block.procedure.Procedure2)">aggregateInPlaceBy</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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">aggregateInPlaceBy</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends K> groupBy, |
| <a href="../../api/block/function/Function0.html" title="interface in org.eclipse.collections.api.block.function">Function0</a><? extends V> zeroValueFactory, |
| <a href="../../api/block/procedure/Procedure2.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure2</a><? super V,​? super T> mutatingAggregator)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#aggregateInPlaceBy(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function0,org.eclipse.collections.api.block.procedure.Procedure2)"><code>RichIterable.aggregateInPlaceBy(Function, Function0, Procedure2)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="aggregateBy(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function0,org.eclipse.collections.api.block.function.Function2)">aggregateBy</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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">aggregateBy</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends K> groupBy, |
| <a href="../../api/block/function/Function0.html" title="interface in org.eclipse.collections.api.block.function">Function0</a><? extends V> zeroValueFactory, |
| <a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super V,​? super T,​? extends V> nonMutatingAggregator)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#aggregateBy(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function0,org.eclipse.collections.api.block.function.Function2)"><code>RichIterable.aggregateBy(Function, Function0, Function2)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="groupByEach(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)">groupByEach</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| V></span> <span class="returnType"><a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a><V,​T></span> <span class="memberName">groupByEach</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><V>> function)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#groupByEach(org.eclipse.collections.api.block.function.Function)"><code>RichIterable.groupByEach(Function)</code></a>, |
| <a href="#groupBy(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)"><code>when function returns single key</code></a>, |
| <a href="#groupByAndCollect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)"><code>when both keys and values get transformed</code></a>, |
| <a href="#toMultimap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)"><code>when both keys and values get transformed and Function returns multiple values</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="groupByEach(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.multimap.MutableMultimap)"> |
| <!-- --> |
| </a><a id="groupByEach(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,R)">groupByEach</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| V,​ |
| R extends <a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a><V,​ |
| T>></span> |
| <span class="returnType">R</span> <span class="memberName">groupByEach</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><V>> function, |
| R targetCollection)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#groupByEach(org.eclipse.collections.api.block.function.Function,R)"><code>RichIterable.groupByEach(Function, MutableMultimap)</code></a>, |
| <a href="#groupBy(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,R)"><code>when function returns single key</code></a>, |
| <a href="#groupByAndCollect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)"><code>when both keys and values get transformed</code></a>, |
| <a href="#toMultimap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)"><code>when both keys and values get transformed and Function returns multiple values</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="groupByAndCollect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.multimap.MutableMultimap)"> |
| <!-- --> |
| </a><a id="groupByAndCollect(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)">groupByAndCollect</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| K,​ |
| V,​ |
| R extends <a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a><K,​ |
| V>></span> |
| <span class="returnType">R</span> <span class="memberName">groupByAndCollect</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends K> groupByFunction, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> valueFunction, |
| R targetMultimap)</span></div> |
| <div class="block">Iterate over the specified collection applying the specified Functions to each element to calculate |
| a key and value, add the results to <code>targetMultimap</code> and return the <code>targetMultimap</code>. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| MutableMultimap<String, String> multimap = |
| Iterate.<b>groupByAndCollect</b>(integers, each -> "key:" + each, each -> "value:" + each, FastListMultimap.newMultimap()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| MutableMultimap<String, String> multimap = |
| Iterate.<b>groupByAndCollect</b>(integers, |
| new Function<Integer, String>() |
| { |
| public String valueOf(Integer each) |
| { |
| return "key:" + each; |
| } |
| }, new Function<Integer, String>() |
| { |
| public String valueOf(Integer each) |
| { |
| return "value:" + each; |
| } |
| }, FastListMultimap.newMultimap()); |
| </pre></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="#groupBy(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)"><code>when only keys get transformed</code></a>, |
| <a href="#groupByEach(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)"><code>when function returns multiple keys</code></a>, |
| <a href="#toMultimap(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)"><code>when both keys and values get transformed and Function returns multiple values</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="groupByUniqueKey(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)">groupByUniqueKey</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><V,​ |
| T></span> <span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a><V,​T></span> <span class="memberName">groupByUniqueKey</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> function)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#groupByUniqueKey(org.eclipse.collections.api.block.function.Function)"><code>RichIterable.groupByUniqueKey(Function)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="groupByUniqueKey(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.map.MutableMapIterable)"> |
| <!-- --> |
| </a><a id="groupByUniqueKey(java.lang.Iterable,org.eclipse.collections.api.block.function.Function,R)">groupByUniqueKey</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><V,​ |
| T,​ |
| R extends <a href="../../api/map/MutableMapIterable.html" title="interface in org.eclipse.collections.api.map">MutableMapIterable</a><V,​ |
| T>></span> |
| <span class="returnType">R</span> <span class="memberName">groupByUniqueKey</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> function, |
| R target)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#groupByUniqueKey(org.eclipse.collections.api.block.function.Function,R)"><code>RichIterable.groupByUniqueKey(Function, MutableMapIterable)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="min(java.lang.Iterable,java.util.Comparator)">min</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">T</span> <span class="memberName">min</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <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 T> comparator)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#min(java.util.Comparator)"><code>RichIterable.min(Comparator)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="max(java.lang.Iterable,java.util.Comparator)">max</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">T</span> <span class="memberName">max</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <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 T> comparator)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#max(java.util.Comparator)"><code>RichIterable.max(Comparator)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="min(java.lang.Iterable)">min</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">T</span> <span class="memberName">min</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#min()"><code>RichIterable.min()</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="max(java.lang.Iterable)">max</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">T</span> <span class="memberName">max</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#max()"><code>RichIterable.max()</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="getOnly(java.lang.Iterable)">getOnly</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">T</span> <span class="memberName">getOnly</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable)</span></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="zip(java.lang.Iterable,java.lang.Iterable)">zip</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><X,​ |
| Y></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><<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><X,​Y>></span> <span class="memberName">zip</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><X> xs, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><Y> ys)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#zip(java.lang.Iterable)"><code>RichIterable.zip(Iterable)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="zip(java.lang.Iterable,java.lang.Iterable,java.util.Collection)"> |
| <!-- --> |
| </a><a id="zip(java.lang.Iterable,java.lang.Iterable,R)">zip</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><X,​ |
| Y,​ |
| 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 href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><X,​ |
| Y>>></span> |
| <span class="returnType">R</span> <span class="memberName">zip</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><X> xs, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><Y> ys, |
| R targetCollection)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#zip(java.lang.Iterable,R)"><code>RichIterable.zip(Iterable, Collection)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="zipWithIndex(java.lang.Iterable)">zipWithIndex</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></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><<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><T,​<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang" class="externalLink">Integer</a>>></span> <span class="memberName">zipWithIndex</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#zipWithIndex()"><code>RichIterable.zipWithIndex()</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="zipWithIndex(java.lang.Iterable,java.util.Collection)"> |
| <!-- --> |
| </a><a id="zipWithIndex(java.lang.Iterable,R)">zipWithIndex</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| 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 href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><T,​ |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang" class="externalLink">Integer</a>>>></span> |
| <span class="returnType">R</span> <span class="memberName">zipWithIndex</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| R targetCollection)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#zipWithIndex(R)"><code>RichIterable.zipWithIndex(Collection)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="chunk(java.lang.Iterable,int)">chunk</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType"><a href="../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><T>></span> <span class="memberName">chunk</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| int size)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#chunk(int)"><code>RichIterable.chunk(int)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="makeString(java.lang.Iterable)">makeString</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a></span> <span class="memberName">makeString</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#makeString()"><code>RichIterable.makeString()</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="makeString(java.lang.Iterable,java.lang.String)">makeString</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a></span> <span class="memberName">makeString</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> separator)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#makeString(java.lang.String)"><code>RichIterable.makeString(String)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="makeString(java.lang.Iterable,java.lang.String,java.lang.String,java.lang.String)">makeString</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a></span> <span class="memberName">makeString</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> start, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> separator, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> end)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#makeString(java.lang.String,java.lang.String,java.lang.String)"><code>RichIterable.makeString(String, String, String)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="appendString(java.lang.Iterable,java.lang.Appendable)">appendString</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">void</span> <span class="memberName">appendString</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Appendable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Appendable</a> appendable)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#appendString(java.lang.Appendable)"><code>RichIterable.appendString(Appendable)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="appendString(java.lang.Iterable,java.lang.Appendable,java.lang.String)">appendString</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">void</span> <span class="memberName">appendString</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Appendable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Appendable</a> appendable, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> separator)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#appendString(java.lang.Appendable,java.lang.String)"><code>RichIterable.appendString(Appendable, String)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="appendString(java.lang.Iterable,java.lang.Appendable,java.lang.String,java.lang.String,java.lang.String)">appendString</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType">void</span> <span class="memberName">appendString</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Appendable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Appendable</a> appendable, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> start, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> separator, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> end)</span></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../api/RichIterable.html#appendString(java.lang.Appendable,java.lang.String,java.lang.String,java.lang.String)"><code>RichIterable.appendString(Appendable, String, String, String)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="maxBy(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)">maxBy</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| V extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a><? super V>></span> <span class="returnType">T</span> <span class="memberName">maxBy</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> function)</span></div> |
| <div class="block">Returns the maximum element out of the iterable based on the natural order of the attribute returned by the function.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="minBy(java.lang.Iterable,org.eclipse.collections.api.block.function.Function)">minBy</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| V extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a><? super V>></span> <span class="returnType">T</span> <span class="memberName">minBy</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T> iterable, |
| <a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super T,​? extends V> function)</span></div> |
| <div class="block">Returns the minimum element out of the iterable based on the natural order of the attribute returned by the function.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="flip(org.eclipse.collections.api.multimap.bag.BagMultimap)">flip</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../multimap/bag/HashBagMultimap.html" title="class in org.eclipse.collections.impl.multimap.bag">HashBagMultimap</a><V,​K></span> <span class="memberName">flip</span>​(<span class="arguments"><a href="../../api/multimap/bag/BagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">BagMultimap</a><K,​V> bagMultimap)</span></div> |
| <div class="block">Flip the keys and values of the multimap.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="flip(org.eclipse.collections.api.multimap.list.ListMultimap)">flip</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../multimap/bag/HashBagMultimap.html" title="class in org.eclipse.collections.impl.multimap.bag">HashBagMultimap</a><V,​K></span> <span class="memberName">flip</span>​(<span class="arguments"><a href="../../api/multimap/list/ListMultimap.html" title="interface in org.eclipse.collections.api.multimap.list">ListMultimap</a><K,​V> listMultimap)</span></div> |
| <div class="block">Flip the keys and values of the multimap.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="flip(org.eclipse.collections.api.multimap.set.SetMultimap)">flip</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><K,​ |
| V></span> <span class="returnType"><a href="../multimap/set/UnifiedSetMultimap.html" title="class in org.eclipse.collections.impl.multimap.set">UnifiedSetMultimap</a><V,​K></span> <span class="memberName">flip</span>​(<span class="arguments"><a href="../../api/multimap/set/SetMultimap.html" title="interface in org.eclipse.collections.api.multimap.set">SetMultimap</a><K,​V> setMultimap)</span></div> |
| <div class="block">Flip the keys and values of the multimap.</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/Iterate.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> |