blob: 3f746879904d5a312713de15c2e704f5aa0afecf [file] [log] [blame]
<!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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</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>&nbsp;<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 &lt;T&gt;&nbsp;boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addAllIterable(java.lang.Iterable,java.util.Collection)">addAllIterable</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;? extends T&gt;&nbsp;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>&lt;T&gt;&nbsp;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 &lt;T,&#8203;
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>&lt;T&gt;&gt;<br>R</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addAllTo(java.lang.Iterable,R)">addAllTo</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;? extends T&gt;&nbsp;iterable,
R&nbsp;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 &lt;T,&#8203;
K,&#8203;
V,&#8203;
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>&lt;K,&#8203;
V&gt;&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends K&gt;&nbsp;keyFunction,
M&nbsp;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 &lt;T,&#8203;
K,&#8203;
V,&#8203;
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>&lt;K,&#8203;
V&gt;&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends K&gt;&nbsp;keyFunction,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;valueFunction,
M&nbsp;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 &lt;T,&#8203;
K,&#8203;
V&gt;&nbsp;<a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a>&lt;K,&#8203;V&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends K&gt;&nbsp;groupBy,
<a href="../../api/block/function/Function0.html" title="interface in org.eclipse.collections.api.block.function">Function0</a>&lt;? extends V&gt;&nbsp;zeroValueFactory,
<a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a>&lt;? super V,&#8203;? super T,&#8203;? extends V&gt;&nbsp;nonMutatingAggregator)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i5">
<td class="colFirst"><code>static &lt;T,&#8203;
K,&#8203;
V&gt;&nbsp;<a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a>&lt;K,&#8203;V&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends K&gt;&nbsp;groupBy,
<a href="../../api/block/function/Function0.html" title="interface in org.eclipse.collections.api.block.function">Function0</a>&lt;? extends V&gt;&nbsp;zeroValueFactory,
<a href="../../api/block/procedure/Procedure2.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure2</a>&lt;? super V,&#8203;? super T&gt;&nbsp;mutatingAggregator)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i6">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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 &lt;T,&#8203;
P&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;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 &lt;T&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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 &lt;T,&#8203;
P&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;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 &lt;T&gt;&nbsp;void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#appendString(java.lang.Iterable,java.lang.Appendable)">appendString</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;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>&nbsp;appendable)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i11">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;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>&nbsp;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>&nbsp;separator)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i12">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;end)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i13">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a>&lt;<a href="../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a>&lt;T&gt;&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#chunk(java.lang.Iterable,int)">chunk</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
int&nbsp;size)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i14">
<td class="colFirst"><code>static &lt;T,&#8203;
A,&#8203;
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>&lt;A&gt;&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends A&gt;&nbsp;function,
R&nbsp;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 &lt;T,&#8203;
V&gt;&nbsp;<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>&lt;V&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;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 &lt;T&gt;&nbsp;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/BooleanFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">BooleanFunction</a>&lt;? super T&gt;&nbsp;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 &lt;T,&#8203;
R extends <a href="../../api/collection/primitive/MutableBooleanCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableBooleanCollection</a>&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/BooleanFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">BooleanFunction</a>&lt;? super T&gt;&nbsp;booleanFunction,
R&nbsp;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 &lt;T&gt;&nbsp;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/ByteFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ByteFunction</a>&lt;? super T&gt;&nbsp;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 &lt;T,&#8203;
R extends <a href="../../api/collection/primitive/MutableByteCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableByteCollection</a>&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/ByteFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ByteFunction</a>&lt;? super T&gt;&nbsp;byteFunction,
R&nbsp;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 &lt;T&gt;&nbsp;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/CharFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">CharFunction</a>&lt;? super T&gt;&nbsp;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 &lt;T,&#8203;
R extends <a href="../../api/collection/primitive/MutableCharCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableCharCollection</a>&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/CharFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">CharFunction</a>&lt;? super T&gt;&nbsp;charFunction,
R&nbsp;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 &lt;T&gt;&nbsp;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a>&lt;? super T&gt;&nbsp;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 &lt;T,&#8203;
R extends <a href="../../api/collection/primitive/MutableDoubleCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableDoubleCollection</a>&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a>&lt;? super T&gt;&nbsp;doubleFunction,
R&nbsp;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 &lt;T&gt;&nbsp;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a>&lt;? super T&gt;&nbsp;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 &lt;T,&#8203;
R extends <a href="../../api/collection/primitive/MutableFloatCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableFloatCollection</a>&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a>&lt;? super T&gt;&nbsp;floatFunction,
R&nbsp;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 &lt;T,&#8203;
V&gt;&nbsp;<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>&lt;V&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;predicate,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i27">
<td class="colFirst"><code>static &lt;T,&#8203;
V,&#8203;
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>&lt;V&gt;&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;predicate,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;function,
R&nbsp;target)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i28">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a>&lt;? super T&gt;&nbsp;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 &lt;T,&#8203;
R extends <a href="../../api/collection/primitive/MutableIntCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableIntCollection</a>&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a>&lt;? super T&gt;&nbsp;intFunction,
R&nbsp;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 &lt;T&gt;&nbsp;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a>&lt;? super T&gt;&nbsp;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 &lt;T,&#8203;
R extends <a href="../../api/collection/primitive/MutableLongCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableLongCollection</a>&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a>&lt;? super T&gt;&nbsp;longFunction,
R&nbsp;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 &lt;T&gt;&nbsp;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/ShortFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ShortFunction</a>&lt;? super T&gt;&nbsp;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 &lt;T,&#8203;
R extends <a href="../../api/collection/primitive/MutableShortCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableShortCollection</a>&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/ShortFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ShortFunction</a>&lt;? super T&gt;&nbsp;shortFunction,
R&nbsp;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 &lt;T,&#8203;
P,&#8203;
A&gt;&nbsp;<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>&lt;A&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a>&lt;? super T,&#8203;? super P,&#8203;? extends A&gt;&nbsp;function,
P&nbsp;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 &lt;T,&#8203;
P,&#8203;
A,&#8203;
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>&lt;A&gt;&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a>&lt;? super T,&#8203;? super P,&#8203;? extends A&gt;&nbsp;function,
P&nbsp;parameter,
R&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;?&gt;&nbsp;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>&nbsp;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 &lt;T&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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 &lt;T,&#8203;
IV&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super IV&gt;&nbsp;predicate,
IV&nbsp;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 &lt;T&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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 &lt;T&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;predicate,
T&nbsp;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 &lt;T&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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 &lt;T,&#8203;
P&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;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 &lt;T&gt;&nbsp;<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>&lt;T&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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 &lt;T,&#8203;
P&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;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 &lt;T,&#8203;
P&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;parameter,
T&nbsp;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 &lt;T,&#8203;
P&gt;&nbsp;<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>&lt;T&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;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 &lt;T&gt;&nbsp;<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>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#drop(java.lang.Iterable,int)">drop</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
int&nbsp;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 &lt;T,&#8203;
A,&#8203;
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>&lt;A&gt;&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? 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>&lt;A&gt;&gt;&nbsp;function,
R&nbsp;targetCollection)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i49">
<td class="colFirst"><code>static &lt;T,&#8203;
V&gt;&nbsp;<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>&lt;V&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? 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>&lt;V&gt;&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i50">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<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>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#flatten(java.lang.Iterable)">flatten</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;? 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>&lt;T&gt;&gt;&nbsp;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 &lt;T,&#8203;
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>&lt;T&gt;&gt;<br>R</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#flatten(java.lang.Iterable,R)">flatten</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;? 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>&lt;T&gt;&gt;&nbsp;iterable,
R&nbsp;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 &lt;K,&#8203;
V&gt;&nbsp;<a href="../multimap/bag/HashBagMultimap.html" title="class in org.eclipse.collections.impl.multimap.bag">HashBagMultimap</a>&lt;V,&#8203;K&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#flip(org.eclipse.collections.api.multimap.bag.BagMultimap)">flip</a></span>&#8203;(<a href="../../api/multimap/bag/BagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">BagMultimap</a>&lt;K,&#8203;V&gt;&nbsp;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 &lt;K,&#8203;
V&gt;&nbsp;<a href="../multimap/bag/HashBagMultimap.html" title="class in org.eclipse.collections.impl.multimap.bag">HashBagMultimap</a>&lt;V,&#8203;K&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#flip(org.eclipse.collections.api.multimap.list.ListMultimap)">flip</a></span>&#8203;(<a href="../../api/multimap/list/ListMultimap.html" title="interface in org.eclipse.collections.api.multimap.list">ListMultimap</a>&lt;K,&#8203;V&gt;&nbsp;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 &lt;K,&#8203;
V&gt;&nbsp;<a href="../multimap/set/UnifiedSetMultimap.html" title="class in org.eclipse.collections.impl.multimap.set">UnifiedSetMultimap</a>&lt;V,&#8203;K&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#flip(org.eclipse.collections.api.multimap.set.SetMultimap)">flip</a></span>&#8203;(<a href="../../api/multimap/set/SetMultimap.html" title="interface in org.eclipse.collections.api.multimap.set">SetMultimap</a>&lt;K,&#8203;V&gt;&nbsp;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 &lt;T&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/procedure/Procedure.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure</a>&lt;? super T&gt;&nbsp;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 &lt;T,&#8203;
P&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/procedure/Procedure2.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;procedure,
P&nbsp;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 &lt;T&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/procedure/primitive/ObjectIntProcedure.html" title="interface in org.eclipse.collections.api.block.procedure.primitive">ObjectIntProcedure</a>&lt;? super T&gt;&nbsp;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 &lt;T&gt;&nbsp;T</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getFirst(java.lang.Iterable)">getFirst</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;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 &lt;T&gt;&nbsp;T</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLast(java.lang.Iterable)">getLast</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;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 &lt;T&gt;&nbsp;T</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getOnly(java.lang.Iterable)">getOnly</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i61">
<td class="colFirst"><code>static &lt;T,&#8203;
V&gt;&nbsp;<a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a>&lt;V,&#8203;T&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i62">
<td class="colFirst"><code>static &lt;T,&#8203;
V,&#8203;
R extends <a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a>&lt;V,&#8203;
T&gt;&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;function,
R&nbsp;targetMultimap)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i63">
<td class="colFirst"><code>static &lt;T,&#8203;
K,&#8203;
V,&#8203;
R extends <a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a>&lt;K,&#8203;
V&gt;&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends K&gt;&nbsp;groupByFunction,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;valueFunction,
R&nbsp;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 &lt;T,&#8203;
V&gt;&nbsp;<a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a>&lt;V,&#8203;T&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? 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>&lt;V&gt;&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i65">
<td class="colFirst"><code>static &lt;T,&#8203;
V,&#8203;
R extends <a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a>&lt;V,&#8203;
T&gt;&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? 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>&lt;V&gt;&gt;&nbsp;function,
R&nbsp;targetCollection)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i66">
<td class="colFirst"><code>static &lt;V,&#8203;
T&gt;&nbsp;<a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a>&lt;V,&#8203;T&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i67">
<td class="colFirst"><code>static &lt;V,&#8203;
T,&#8203;
R extends <a href="../../api/map/MutableMapIterable.html" title="interface in org.eclipse.collections.api.map">MutableMapIterable</a>&lt;V,&#8203;
T&gt;&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;function,
R&nbsp;target)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i68">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;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>&#8203;(double&nbsp;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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/DoubleObjectToDoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleObjectToDoubleFunction</a>&lt;? super T&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i69">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;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>&#8203;(float&nbsp;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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/FloatObjectToFloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatObjectToFloatFunction</a>&lt;? super T&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i70">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;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>&#8203;(int&nbsp;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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/IntObjectToIntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntObjectToIntFunction</a>&lt;? super T&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i71">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;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>&#8203;(long&nbsp;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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/LongObjectToLongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongObjectToLongFunction</a>&lt;? super T&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i72">
<td class="colFirst"><code>static &lt;T,&#8203;
IV&gt;&nbsp;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>&#8203;(IV&nbsp;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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a>&lt;? super IV,&#8203;? super T,&#8203;? extends IV&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i73">
<td class="colFirst"><code>static &lt;T,&#8203;
IV,&#8203;
P&gt;&nbsp;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>&#8203;(IV&nbsp;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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function3.html" title="interface in org.eclipse.collections.api.block.function">Function3</a>&lt;? super IV,&#8203;? super T,&#8203;? super P,&#8203;? extends IV&gt;&nbsp;function,
P&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;?&gt;&nbsp;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 &lt;T&gt;&nbsp;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i76">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;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>&nbsp;separator)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i77">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;end)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i78">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;T</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#max(java.lang.Iterable)">max</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i79">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;T</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#max(java.lang.Iterable,java.util.Comparator)">max</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;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>&lt;? super T&gt;&nbsp;comparator)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i80">
<td class="colFirst"><code>static &lt;T,&#8203;
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>&lt;? super V&gt;&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;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 &lt;T&gt;&nbsp;T</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#min(java.lang.Iterable)">min</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i82">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;T</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#min(java.lang.Iterable,java.util.Comparator)">min</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;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>&lt;? super T&gt;&nbsp;comparator)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i83">
<td class="colFirst"><code>static &lt;T,&#8203;
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>&lt;? super V&gt;&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;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 &lt;T&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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 &lt;T,&#8203;
P&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;?&gt;&nbsp;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 &lt;T&gt;&nbsp;<a href="../../api/partition/PartitionIterable.html" title="interface in org.eclipse.collections.api.partition">PartitionIterable</a>&lt;T&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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 &lt;T,&#8203;
P&gt;&nbsp;<a href="../../api/partition/PartitionIterable.html" title="interface in org.eclipse.collections.api.partition">PartitionIterable</a>&lt;T&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;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 &lt;T,&#8203;
R&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;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>&lt;R&gt;&nbsp;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>&lt;R,&#8203;? super T&gt;&nbsp;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 &lt;T,&#8203;
A,&#8203;
R&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;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>&lt;? super T,&#8203;A,&#8203;R&gt;&nbsp;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 &lt;T&gt;&nbsp;<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>&lt;T&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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 &lt;T,&#8203;
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>&lt;T&gt;&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;predicate,
R&nbsp;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 &lt;T,&#8203;
P&gt;&nbsp;<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>&lt;T&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;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 &lt;T,&#8203;
P,&#8203;
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>&lt;T&gt;&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;parameter,
R&nbsp;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 &lt;T,&#8203;
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>&lt;T&gt;&gt;<br>R</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeAllFrom(java.lang.Iterable,R)">removeAllFrom</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;? extends T&gt;&nbsp;iterable,
R&nbsp;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 &lt;T&gt;&nbsp;boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeAllIterable(java.lang.Iterable,java.util.Collection)">removeAllIterable</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;? extends T&gt;&nbsp;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>&lt;T&gt;&nbsp;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 &lt;T&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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 &lt;T,&#8203;
P&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;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 &lt;T&gt;&nbsp;<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>&lt;T&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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 &lt;T,&#8203;
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>&lt;T&gt;&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;predicate,
R&nbsp;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 &lt;T,&#8203;
IV&gt;&nbsp;<a href="../../api/tuple/Twin.html" title="interface in org.eclipse.collections.api.tuple">Twin</a>&lt;<a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a>&lt;T&gt;&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super IV&gt;&nbsp;predicate,
IV&nbsp;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 &lt;T&gt;&nbsp;<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>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#selectInstancesOf(java.lang.Iterable,java.lang.Class)">selectInstancesOf</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;?&gt;&nbsp;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>&lt;T&gt;&nbsp;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 &lt;T,&#8203;
IV&gt;&nbsp;<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>&lt;T&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super IV&gt;&nbsp;predicate,
IV&nbsp;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 &lt;T,&#8203;
P,&#8203;
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>&lt;T&gt;&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;parameter,
R&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;?&gt;&nbsp;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 &lt;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>&lt;? super T&gt;,&#8203;
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>&lt;T&gt;&gt;<br>L</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sortThis(L)">sortThis</a></span>&#8203;(L&nbsp;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 &lt;T,&#8203;
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>&lt;T&gt;&gt;<br>L</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sortThis(L,java.util.Comparator)">sortThis</a></span>&#8203;(L&nbsp;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>&lt;? super T&gt;&nbsp;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 &lt;T,&#8203;
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>&lt;T&gt;&gt;<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>&#8203;(L&nbsp;list,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super T&gt;&nbsp;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 &lt;T,&#8203;
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>&lt;? super V&gt;,&#8203;
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>&lt;T&gt;&gt;<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>&#8203;(L&nbsp;list,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;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 &lt;V,&#8203;
T&gt;&nbsp;<a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a>&lt;V,&#8203;<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>&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;T,&#8203;V&gt;&nbsp;groupBy,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;<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>&gt;&nbsp;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 &lt;V,&#8203;
T&gt;&nbsp;<a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a>&lt;V,&#8203;<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>&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;T,&#8203;V&gt;&nbsp;groupBy,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;<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>&gt;&nbsp;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 &lt;T,&#8203;
V&gt;&nbsp;<a href="../../api/map/primitive/ObjectDoubleMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectDoubleMap</a>&lt;V&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;T,&#8203;V&gt;&nbsp;groupBy,
<a href="../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a>&lt;? super T&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i113">
<td class="colFirst"><code>static &lt;T,&#8203;
V&gt;&nbsp;<a href="../../api/map/primitive/ObjectDoubleMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectDoubleMap</a>&lt;V&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;T,&#8203;V&gt;&nbsp;groupBy,
<a href="../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a>&lt;? super T&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i114">
<td class="colFirst"><code>static &lt;T,&#8203;
V&gt;&nbsp;<a href="../../api/map/primitive/ObjectLongMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectLongMap</a>&lt;V&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;T,&#8203;V&gt;&nbsp;groupBy,
<a href="../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a>&lt;? super T&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i115">
<td class="colFirst"><code>static &lt;T,&#8203;
V&gt;&nbsp;<a href="../../api/map/primitive/ObjectLongMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectLongMap</a>&lt;V&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;T,&#8203;V&gt;&nbsp;groupBy,
<a href="../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a>&lt;? super T&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i116">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;<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>&gt;&nbsp;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 &lt;T&gt;&nbsp;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;<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>&gt;&nbsp;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 &lt;T&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a>&lt;? super T&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i119">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a>&lt;? super T&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i120">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a>&lt;? super T&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i121">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a>&lt;? super T&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i122">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<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>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#take(java.lang.Iterable,int)">take</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
int&nbsp;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 &lt;T&gt;&nbsp;T[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toArray(java.lang.Iterable,T%5B%5D)">toArray</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;? extends T&gt;&nbsp;iterable,
T[]&nbsp;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 &lt;T&gt;&nbsp;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;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 &lt;T,&#8203;
K&gt;&nbsp;<a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a>&lt;K,&#8203;T&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends K&gt;&nbsp;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 &lt;T,&#8203;
K,&#8203;
V&gt;&nbsp;<a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a>&lt;K,&#8203;V&gt;</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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends K&gt;&nbsp;keyFunction,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;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 &lt;T,&#8203;
K,&#8203;
V,&#8203;
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>&lt;K,&#8203;
V&gt;&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends K&gt;&nbsp;keyFunction,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;valueFunction,
R&nbsp;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 &lt;T,&#8203;
K,&#8203;
V,&#8203;
R extends <a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a>&lt;K,&#8203;
V&gt;&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends K&gt;&nbsp;keyFunction,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? 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>&lt;V&gt;&gt;&nbsp;valuesFunction,
R&nbsp;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 &lt;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>&lt;? super T&gt;&gt;<br><a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toSortedList(java.lang.Iterable)">toSortedList</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;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 &lt;T&gt;&nbsp;<a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toSortedList(java.lang.Iterable,java.util.Comparator)">toSortedList</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;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>&lt;? super T&gt;&nbsp;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 &lt;X,&#8203;
Y&gt;&nbsp;<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>&lt;<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a>&lt;X,&#8203;Y&gt;&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#zip(java.lang.Iterable,java.lang.Iterable)">zip</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;X&gt;&nbsp;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>&lt;Y&gt;&nbsp;ys)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i132">
<td class="colFirst"><code>static &lt;X,&#8203;
Y,&#8203;
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>&lt;<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a>&lt;X,&#8203;
Y&gt;&gt;&gt;<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;X&gt;&nbsp;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>&lt;Y&gt;&nbsp;ys,
R&nbsp;targetCollection)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i133">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<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>&lt;<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a>&lt;T,&#8203;<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>&gt;&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#zipWithIndex(java.lang.Iterable)">zipWithIndex</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i134">
<td class="colFirst"><code>static &lt;T,&#8203;
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>&lt;<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a>&lt;T,&#8203;
<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>&gt;&gt;&gt;<br>R</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#zipWithIndex(java.lang.Iterable,R)">zipWithIndex</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a>&lt;T&gt;&nbsp;iterable,
R&nbsp;targetCollection)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="inheritedList">
<h3>Methods inherited from class&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">forEach</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/procedure/Procedure.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure</a>&lt;? super T&gt;&nbsp;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 -&gt; LOGGER.info(person.getName());
</pre>
<p>
Example using an anonymous inner class:
<pre>
Iterate.<b>forEach</b>(people, new Procedure&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
P&gt;</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">forEachWith</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/procedure/Procedure2.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;procedure,
P&nbsp;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) -&gt;
{
if (other.equals(person))
{
LOGGER.info(person.getName());
}
}, fred);
</pre>
<pre>e.g.
Iterate.<b>forEachWith</b>(people, new Procedure2&lt;Person, Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">forEachWithIndex</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/procedure/primitive/ObjectIntProcedure.html" title="interface in org.eclipse.collections.api.block.procedure.primitive">ObjectIntProcedure</a>&lt;? super T&gt;&nbsp;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) -&gt; LOGGER.info("Index: " + index + " person: " + person.getName()));
</pre>
<p>
Example using anonymous inner class:
<pre>
Iterate.<b>forEachWithIndex</b>(people, new ObjectIntProcedure&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<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>&lt;T&gt;</span>&nbsp;<span class="memberName">select</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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&lt;Person&gt; selected =
Iterate.<b>select</b>(people, person -&gt; person.getAddress().getCity().equals("Metuchen"));
</pre>
<p>
Example using an anonymous inner class:
<pre>e.g.
Collection&lt;Person&gt; selected =
Iterate.<b>select</b>(people, new Predicate&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
IV&gt;</span>&nbsp;<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>&lt;T&gt;</span>&nbsp;<span class="memberName">selectWith</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super IV&gt;&nbsp;predicate,
IV&nbsp;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&lt;Person&gt; selected =
Iterate.<b>selectWith</b>(people, (Person person, Integer age) -&gt; person.getAge() &gt;= age, Integer.valueOf(18));
</pre>
<p>
Example using an anonymous inner class:
<pre>
Collection&lt;Person&gt; selected =
Iterate.<b>selectWith</b>(people, new Predicate2&lt;Person, Integer&gt;()
{
public boolean accept(Person person, Integer age)
{
return person.getAge() &gt;= 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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
IV&gt;</span>&nbsp;<span class="returnType"><a href="../../api/tuple/Twin.html" title="interface in org.eclipse.collections.api.tuple">Twin</a>&lt;<a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a>&lt;T&gt;&gt;</span>&nbsp;<span class="memberName">selectAndRejectWith</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super IV&gt;&nbsp;predicate,
IV&nbsp;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&lt;MutableList&lt;Person&gt;&gt;selectedRejected =
Iterate.<b>selectAndRejectWith</b>(people, (Person person, String lastName) -&gt; lastName.equals(person.getLastName()), "Mason");
</pre>
<p>
Example using an anonymous inner class:
<pre>
Twin&lt;MutableList&lt;Person&gt;&gt;selectedRejected =
Iterate.<b>selectAndRejectWith</b>(people, new Predicate2&lt;String, String&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../api/partition/PartitionIterable.html" title="interface in org.eclipse.collections.api.partition">PartitionIterable</a>&lt;T&gt;</span>&nbsp;<span class="memberName">partition</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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&lt;Person&gt; newYorkersAndNonNewYorkers =
Iterate.<b>partition</b>(people, person -&gt; person.getAddress().getState().getName().equals("New York"));
</pre>
<p>
Example using an anonymous inner class:
<pre>
PartitionIterable&lt;Person&gt; newYorkersAndNonNewYorkers =
Iterate.<b>partition</b>(people, new Predicate&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
P&gt;</span>&nbsp;<span class="returnType"><a href="../../api/partition/PartitionIterable.html" title="interface in org.eclipse.collections.api.partition">PartitionIterable</a>&lt;T&gt;</span>&nbsp;<span class="memberName">partitionWith</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;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&lt;Person&gt; newYorkersAndNonNewYorkers =
Iterate.<b>partitionWith</b>(people, (Person person, String state) -&gt; person.getAddress().getState().getName().equals(state), "New York");
</pre>
<p>
Example using an anonymous inner class:
<pre>
PartitionIterable&lt;Person&gt; newYorkersAndNonNewYorkers =
Iterate.<b>partitionWith</b>(people, new Predicate&lt;Person, String&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<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>&lt;T&gt;</span>&nbsp;<span class="memberName">selectInstancesOf</span>&#8203;(<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>&lt;?&gt;&nbsp;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>&lt;T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">count</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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 -&gt; person.getAddress().getState().getName().equals("New York"));
</pre>
<p>
Example using anonymous inner class
<pre>
int count = Iterate.<b>count</b>(people, new Predicate&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
IV&gt;</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">countWith</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super IV&gt;&nbsp;predicate,
IV&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
V&gt;</span>&nbsp;<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>&lt;V&gt;</span>&nbsp;<span class="memberName">collectIf</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;predicate,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
V,&#8203;
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>&lt;V&gt;&gt;</span>&nbsp;<span class="returnType">R</span>&nbsp;<span class="memberName">collectIf</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;predicate,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;function,
R&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
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>&lt;T&gt;&gt;</span>&nbsp;<span class="returnType">R</span>&nbsp;<span class="memberName">select</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;predicate,
R&nbsp;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&lt;Person&gt; selected =
Iterate.<b>select</b>(people, person -&gt; person.person.getLastName().equals("Smith"), FastList.newList());
</pre>
<p>
Example using anonymous inner class:
<pre>
MutableList&lt;Person&gt; selected =
Iterate.<b>select</b>(people, new Predicate&lt;Person&gt;()
{
public boolean accept(Person person)
{
return person.person.getLastName().equals("Smith");
}
}, FastList.newList());
</pre>
<p>
Example using Predicates factory:
<pre>
MutableList&lt;Person&gt; 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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
P,&#8203;
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>&lt;T&gt;&gt;</span>&nbsp;<span class="returnType">R</span>&nbsp;<span class="memberName">selectWith</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;parameter,
R&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<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>&lt;T&gt;</span>&nbsp;<span class="memberName">take</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
int&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<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>&lt;T&gt;</span>&nbsp;<span class="memberName">drop</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
int&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<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>&lt;T&gt;</span>&nbsp;<span class="memberName">reject</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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&lt;Person&gt; rejected =
Iterate.<b>reject</b>(people, person -&gt; person.person.getLastName().equals("Smith"));
</pre>
<p>
Example using anonymous inner class:
<pre>
Collection&lt;Person&gt; rejected =
Iterate.<b>reject</b>(people,
new Predicate&lt;Person&gt;()
{
public boolean accept(Person person)
{
return person.person.getLastName().equals("Smith");
}
});
</pre>
<p>
Example using Predicates factory:
<pre>
Collection&lt;Person&gt; 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>&nbsp;<span class="typeParametersLong">&lt;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>&lt;? super T&gt;,&#8203;
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>&lt;T&gt;&gt;</span>
<span class="returnType">L</span>&nbsp;<span class="memberName">sortThis</span>&#8203;(<span class="arguments">L&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
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>&lt;T&gt;&gt;</span>&nbsp;<span class="returnType">L</span>&nbsp;<span class="memberName">sortThis</span>&#8203;(<span class="arguments">L&nbsp;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>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
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>&lt;T&gt;&gt;</span>&nbsp;<span class="returnType">L</span>&nbsp;<span class="memberName">sortThis</span>&#8203;(<span class="arguments">L&nbsp;list,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super T&gt;&nbsp;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>&nbsp;<span class="typeParametersLong">&lt;T,&#8203;
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>&lt;? super V&gt;,&#8203;
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>&lt;T&gt;&gt;</span>
<span class="returnType">L</span>&nbsp;<span class="memberName">sortThisBy</span>&#8203;(<span class="arguments">L&nbsp;list,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">boolean</span>&nbsp;<span class="memberName">removeIf</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
P&gt;</span>&nbsp;<span class="returnType">boolean</span>&nbsp;<span class="memberName">removeIfWith</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
P&gt;</span>&nbsp;<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>&lt;T&gt;</span>&nbsp;<span class="memberName">rejectWith</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;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&lt;Person&gt; rejected =
Iterate.<b>rejectWith</b>(people, (Person person, Integer age) -&gt; person.getAge() &gt;= age, Integer.valueOf(18));
</pre>
<p>
Example using an anonymous inner class:
<pre>
Collection&lt;Person&gt; rejected =
Iterate.<b>rejectWith</b>(people, new Predicate2&lt;Person, Integer&gt;()
{
public boolean accept(Person person, Integer age)
{
return person.getAge() &gt;= 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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
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>&lt;T&gt;&gt;</span>&nbsp;<span class="returnType">R</span>&nbsp;<span class="memberName">reject</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;predicate,
R&nbsp;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&lt;Person&gt; rejected =
Iterate.<b>reject</b>(people, person -&gt; person.person.getLastName().equals("Smith"), FastList.newList());
</pre>
<p>
Example using anonymous inner class:
<pre>
MutableList&lt;Person&gt; rejected =
Iterate.<b>reject</b>(
people,
new Predicate&lt;Person&gt;()
{
public boolean accept(Person person)
{
return person.person.getLastName().equals("Smith");
}
},
FastList.newList());
</pre>
<p>
Example using Predicates factory:
<pre>
MutableList&lt;Person&gt; 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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
P,&#8203;
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>&lt;T&gt;&gt;</span>&nbsp;<span class="returnType">R</span>&nbsp;<span class="memberName">rejectWith</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;parameter,
R&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
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>&lt;T&gt;&gt;</span>&nbsp;<span class="returnType">R</span>&nbsp;<span class="memberName">addAllTo</span>&#8203;(<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>&lt;? extends T&gt;&nbsp;iterable,
R&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">boolean</span>&nbsp;<span class="memberName">addAllIterable</span>&#8203;(<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>&lt;? extends T&gt;&nbsp;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>&lt;T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
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>&lt;T&gt;&gt;</span>&nbsp;<span class="returnType">R</span>&nbsp;<span class="memberName">removeAllFrom</span>&#8203;(<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>&lt;? extends T&gt;&nbsp;iterable,
R&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">boolean</span>&nbsp;<span class="memberName">removeAllIterable</span>&#8203;(<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>&lt;? extends T&gt;&nbsp;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>&lt;T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
V&gt;</span>&nbsp;<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>&lt;V&gt;</span>&nbsp;<span class="memberName">collect</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;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&lt;String&gt; names =
Iterate.<b>collect</b>(people, person -&gt; person.getFirstName() + " " + person.getLastName());
</pre>
<p>
Example using an anonymous inner class:
<pre>
Collection&lt;String&gt; names =
Iterate.<b>collect</b>(
people,
new Function&lt;Person, String&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
A,&#8203;
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>&lt;A&gt;&gt;</span>&nbsp;<span class="returnType">R</span>&nbsp;<span class="memberName">collect</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends A&gt;&nbsp;function,
R&nbsp;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&lt;String&gt; names =
Iterate.<b>collect</b>(people, person -&gt; person.getFirstName() + " " + person.getLastName(), FastList.newList());
</pre>
<p>
Example using an anonymous inner class:
<pre>
MutableList&lt;String&gt; names =
Iterate.<b>collect</b>(
people,
new Function&lt;Person, String&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../api/collection/primitive/MutableBooleanCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableBooleanCollection</a></span>&nbsp;<span class="memberName">collectBoolean</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/BooleanFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">BooleanFunction</a>&lt;? super T&gt;&nbsp;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 -&gt; person.canVote());
</pre>
<p>
Example using anonymous inner class:
<pre>
MutableBooleanCollection voters =
Iterate.<b>collectBoolean</b>(
people,
new BooleanFunction&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
R extends <a href="../../api/collection/primitive/MutableBooleanCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableBooleanCollection</a>&gt;</span>
<span class="returnType">R</span>&nbsp;<span class="memberName">collectBoolean</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/BooleanFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">BooleanFunction</a>&lt;? super T&gt;&nbsp;booleanFunction,
R&nbsp;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 -&gt; person.canVote(), new BooleanArrayList());
</pre>
<p>
Example using an anonymous inner class:
<pre>
BooleanArrayList voters =
Iterate.<b>collectBoolean</b>(
people,
new BooleanFunction&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../api/collection/primitive/MutableByteCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableByteCollection</a></span>&nbsp;<span class="memberName">collectByte</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/ByteFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ByteFunction</a>&lt;? super T&gt;&nbsp;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 -&gt; person.getCode());
</pre>
<p>
Example using anonymous inner class:
<pre>
MutableByteCollection bytes =
Iterate.<b>collectByte</b>(
people,
new ByteFunction&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
R extends <a href="../../api/collection/primitive/MutableByteCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableByteCollection</a>&gt;</span>&nbsp;<span class="returnType">R</span>&nbsp;<span class="memberName">collectByte</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/ByteFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ByteFunction</a>&lt;? super T&gt;&nbsp;byteFunction,
R&nbsp;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 -&gt; person.getCode(), new ByteArrayList());
</pre>
<p>
Example using an anonymous inner class:
<pre>
ByteArrayList bytes =
Iterate.<b>collectByte</b>(
people,
new ByteFunction&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../api/collection/primitive/MutableCharCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableCharCollection</a></span>&nbsp;<span class="memberName">collectChar</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/CharFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">CharFunction</a>&lt;? super T&gt;&nbsp;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 -&gt; person.getMiddleInitial());
</pre>
<p>
Example using anonymous inner class:
<pre>
MutableCharCollection chars =
Iterate.<b>collectChar</b>(
people,
new CharFunction&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
R extends <a href="../../api/collection/primitive/MutableCharCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableCharCollection</a>&gt;</span>&nbsp;<span class="returnType">R</span>&nbsp;<span class="memberName">collectChar</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/CharFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">CharFunction</a>&lt;? super T&gt;&nbsp;charFunction,
R&nbsp;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 -&gt; person.getMiddleInitial());
</pre>
<p>
Example using anonymous inner class:
<pre>
CharArrayList chars =
Iterate.<b>collectChar</b>(
people,
new CharFunction&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../api/collection/primitive/MutableDoubleCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableDoubleCollection</a></span>&nbsp;<span class="memberName">collectDouble</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a>&lt;? super T&gt;&nbsp;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 -&gt; person.getMilesFromNorthPole());
</pre>
Example using an anonymous inner class:
<pre>
MutableDoubleCollection doubles =
Iterate.<b>collectDouble</b>(people,
new DoubleFunction&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
R extends <a href="../../api/collection/primitive/MutableDoubleCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableDoubleCollection</a>&gt;</span>
<span class="returnType">R</span>&nbsp;<span class="memberName">collectDouble</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a>&lt;? super T&gt;&nbsp;doubleFunction,
R&nbsp;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 -&gt; person.getMilesFromNorthPole());
</pre>
<p>
Example using an anonymous inner class:
<pre>
DoubleArrayList doubles =
Iterate.<b>collectDouble</b>(people,
new DoubleFunction&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../api/collection/primitive/MutableFloatCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableFloatCollection</a></span>&nbsp;<span class="memberName">collectFloat</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a>&lt;? super T&gt;&nbsp;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 -&gt; person.getHeightInInches());
</pre>
<p>
Example using an anonymous inner class:
<pre>
MutableFloatCollection floats =
Iterate.<b>collectFloat</b>(people,
new FloatFunction&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
R extends <a href="../../api/collection/primitive/MutableFloatCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableFloatCollection</a>&gt;</span>
<span class="returnType">R</span>&nbsp;<span class="memberName">collectFloat</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a>&lt;? super T&gt;&nbsp;floatFunction,
R&nbsp;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 -&gt; person.getHeightInInches(), new FloatArrayList());
</pre>
<p>
Example using an anonymous inner class:
<pre>
FloatArrayList floats =
Iterate.<b>collectFloat</b>(people,
new FloatFunction&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../api/collection/primitive/MutableIntCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableIntCollection</a></span>&nbsp;<span class="memberName">collectInt</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a>&lt;? super T&gt;&nbsp;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 -&gt; person.getAge());
</pre>
<p>
Example using an anonymous inner class:
<pre>
MutableIntCollection ages =
Iterate.<b>collectInt</b>(people,
new IntFunction&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
R extends <a href="../../api/collection/primitive/MutableIntCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableIntCollection</a>&gt;</span>&nbsp;<span class="returnType">R</span>&nbsp;<span class="memberName">collectInt</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a>&lt;? super T&gt;&nbsp;intFunction,
R&nbsp;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 -&gt; person.getAge(), new IntArrayList());
</pre>
<p>
Example using an anonymous inner class:
<pre>
IntArrayList ages =
Iterate.<b>collectInt</b>(people,
new IntFunction&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../api/collection/primitive/MutableLongCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableLongCollection</a></span>&nbsp;<span class="memberName">collectLong</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a>&lt;? super T&gt;&nbsp;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 -&gt; person.getGuid());
</pre>
<p>
Example using an anonymous inner class:
<pre>
MutableLongCollection longs =
Iterate.<b>collectLong</b>(people,
new LongFunction&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
R extends <a href="../../api/collection/primitive/MutableLongCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableLongCollection</a>&gt;</span>&nbsp;<span class="returnType">R</span>&nbsp;<span class="memberName">collectLong</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a>&lt;? super T&gt;&nbsp;longFunction,
R&nbsp;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 -&gt; person.getGuid(), new LongArrayList());
</pre>
<p>
Example using an anonymous inner class:
<pre>
LongArrayList longs =
Iterate.<b>collectLong</b>(people,
new LongFunction&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../api/collection/primitive/MutableShortCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableShortCollection</a></span>&nbsp;<span class="memberName">collectShort</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/ShortFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ShortFunction</a>&lt;? super T&gt;&nbsp;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 -&gt; person.getNumberOfJunkMailItemsReceivedPerMonth());
</pre>
<p>
Example using an anonymous inner class:
<pre>
MutableShortCollection shorts =
Iterate.<b>collectShort</b>(people,
new ShortFunction&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
R extends <a href="../../api/collection/primitive/MutableShortCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableShortCollection</a>&gt;</span>
<span class="returnType">R</span>&nbsp;<span class="memberName">collectShort</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/ShortFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ShortFunction</a>&lt;? super T&gt;&nbsp;shortFunction,
R&nbsp;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 -&gt; person.getNumberOfJunkMailItemsReceivedPerMonth(), new ShortArrayList());
</pre>
<p>
Example using an anonymous inner class:
<pre>
ShortArrayList shorts =
Iterate.<b>collectShort</b>(people,
new ShortFunction&lt;Person&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
V&gt;</span>&nbsp;<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>&lt;V&gt;</span>&nbsp;<span class="memberName">flatCollect</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? 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>&lt;V&gt;&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
A,&#8203;
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>&lt;A&gt;&gt;</span>&nbsp;<span class="returnType">R</span>&nbsp;<span class="memberName">flatCollect</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? 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>&lt;A&gt;&gt;&nbsp;function,
R&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
P,&#8203;
A&gt;</span>&nbsp;<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>&lt;A&gt;</span>&nbsp;<span class="memberName">collectWith</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a>&lt;? super T,&#8203;? super P,&#8203;? extends A&gt;&nbsp;function,
P&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
P,&#8203;
A,&#8203;
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>&lt;A&gt;&gt;</span>&nbsp;<span class="returnType">R</span>&nbsp;<span class="memberName">collectWith</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a>&lt;? super T,&#8203;? super P,&#8203;? extends A&gt;&nbsp;function,
P&nbsp;parameter,
R&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<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>&lt;T&gt;</span>&nbsp;<span class="memberName">flatten</span>&#8203;(<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>&lt;? 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>&lt;T&gt;&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
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>&lt;T&gt;&gt;</span>&nbsp;<span class="returnType">R</span>&nbsp;<span class="memberName">flatten</span>&#8203;(<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>&lt;? 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>&lt;T&gt;&gt;&nbsp;iterable,
R&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">T</span>&nbsp;<span class="memberName">getFirst</span>&#8203;(<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>&lt;T&gt;&nbsp;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>&nbsp;<span class="returnType">boolean</span>&nbsp;<span class="memberName">isEmpty</span>&#8203;(<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>&lt;?&gt;&nbsp;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>&nbsp;<span class="returnType">boolean</span>&nbsp;<span class="memberName">notEmpty</span>&#8203;(<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>&lt;?&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">T</span>&nbsp;<span class="memberName">getLast</span>&#8203;(<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>&lt;T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">T</span>&nbsp;<span class="memberName">detect</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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 -&gt; person.getFirstName().equals("John") &amp;&amp; person.getLastName().equals("Smith"));
</pre>
<p>
Example using an anonymous inner class:
<pre>
Person person = Iterate.<b>detect</b>(people, new Predicate&lt;Person&gt;()
{
public boolean accept(Person person)
{
return person.getFirstName().equals("John") &amp;&amp; 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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
P&gt;</span>&nbsp;<span class="returnType">T</span>&nbsp;<span class="memberName">detectWith</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;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) -&gt; person.getFullName().equals(fullName), "John Smith");
</pre>
<p>
Example using an anonymous inner class:
<pre>
Person person = Iterate.<b>detectWith</b>(people, new Predicate2&lt;Person, String&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<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>&lt;T&gt;</span>&nbsp;<span class="memberName">detectOptional</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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&lt;Person&gt; person =
Iterate.<b>detectOptional</b>(people,
person -&gt; person.getFirstName().equals("John") &amp;&amp; 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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
P&gt;</span>&nbsp;<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>&lt;T&gt;</span>&nbsp;<span class="memberName">detectWithOptional</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;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&lt;Person&gt; person =
Iterate.<b>detectWithOptional</b>(people,
(person, fullName) -&gt; 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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">T</span>&nbsp;<span class="memberName">detectIfNone</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;predicate,
T&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
P&gt;</span>&nbsp;<span class="returnType">T</span>&nbsp;<span class="memberName">detectWithIfNone</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;parameter,
T&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">detectIndex</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
P&gt;</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">detectIndexWith</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
A,&#8203;
R&gt;</span>&nbsp;<span class="returnType">R</span>&nbsp;<span class="memberName">reduceInPlace</span>&#8203;(<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>&lt;T&gt;&nbsp;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>&lt;? super T,&#8203;A,&#8203;R&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
R&gt;</span>&nbsp;<span class="returnType">R</span>&nbsp;<span class="memberName">reduceInPlace</span>&#8203;(<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>&lt;T&gt;&nbsp;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>&lt;R&gt;&nbsp;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>&lt;R,&#8203;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
IV&gt;</span>&nbsp;<span class="returnType">IV</span>&nbsp;<span class="memberName">injectInto</span>&#8203;(<span class="arguments">IV&nbsp;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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a>&lt;? super IV,&#8203;? super T,&#8203;? extends IV&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">injectInto</span>&#8203;(<span class="arguments">int&nbsp;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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/IntObjectToIntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntObjectToIntFunction</a>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">long</span>&nbsp;<span class="memberName">injectInto</span>&#8203;(<span class="arguments">long&nbsp;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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/LongObjectToLongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongObjectToLongFunction</a>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">double</span>&nbsp;<span class="memberName">injectInto</span>&#8203;(<span class="arguments">double&nbsp;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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/DoubleObjectToDoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleObjectToDoubleFunction</a>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">float</span>&nbsp;<span class="memberName">injectInto</span>&#8203;(<span class="arguments">float&nbsp;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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/FloatObjectToFloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatObjectToFloatFunction</a>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">long</span>&nbsp;<span class="memberName">sumOfInt</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">long</span>&nbsp;<span class="memberName">sumOfLong</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">double</span>&nbsp;<span class="memberName">sumOfFloat</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">double</span>&nbsp;<span class="memberName">sumOfDouble</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<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>&nbsp;<span class="memberName">sumOfBigDecimal</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;<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>&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<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>&nbsp;<span class="memberName">sumOfBigInteger</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;<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>&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;V,&#8203;
T&gt;</span>&nbsp;<span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a>&lt;V,&#8203;<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>&gt;</span>&nbsp;<span class="memberName">sumByBigDecimal</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;T,&#8203;V&gt;&nbsp;groupBy,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;<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>&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;V,&#8203;
T&gt;</span>&nbsp;<span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a>&lt;V,&#8203;<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>&gt;</span>&nbsp;<span class="memberName">sumByBigInteger</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;T,&#8203;V&gt;&nbsp;groupBy,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;<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>&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
V&gt;</span>&nbsp;<span class="returnType"><a href="../../api/map/primitive/ObjectLongMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectLongMap</a>&lt;V&gt;</span>&nbsp;<span class="memberName">sumByInt</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;T,&#8203;V&gt;&nbsp;groupBy,
<a href="../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
V&gt;</span>&nbsp;<span class="returnType"><a href="../../api/map/primitive/ObjectLongMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectLongMap</a>&lt;V&gt;</span>&nbsp;<span class="memberName">sumByLong</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;T,&#8203;V&gt;&nbsp;groupBy,
<a href="../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
V&gt;</span>&nbsp;<span class="returnType"><a href="../../api/map/primitive/ObjectDoubleMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectDoubleMap</a>&lt;V&gt;</span>&nbsp;<span class="memberName">sumByFloat</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;T,&#8203;V&gt;&nbsp;groupBy,
<a href="../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
V&gt;</span>&nbsp;<span class="returnType"><a href="../../api/map/primitive/ObjectDoubleMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectDoubleMap</a>&lt;V&gt;</span>&nbsp;<span class="memberName">sumByDouble</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;T,&#8203;V&gt;&nbsp;groupBy,
<a href="../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
IV,&#8203;
P&gt;</span>&nbsp;<span class="returnType">IV</span>&nbsp;<span class="memberName">injectIntoWith</span>&#8203;(<span class="arguments">IV&nbsp;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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function3.html" title="interface in org.eclipse.collections.api.block.function">Function3</a>&lt;? super IV,&#8203;? super T,&#8203;? super P,&#8203;? extends IV&gt;&nbsp;function,
P&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">boolean</span>&nbsp;<span class="memberName">anySatisfy</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
P&gt;</span>&nbsp;<span class="returnType">boolean</span>&nbsp;<span class="memberName">anySatisfyWith</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">boolean</span>&nbsp;<span class="memberName">allSatisfy</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
P&gt;</span>&nbsp;<span class="returnType">boolean</span>&nbsp;<span class="memberName">allSatisfyWith</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">boolean</span>&nbsp;<span class="memberName">noneSatisfy</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
P&gt;</span>&nbsp;<span class="returnType">boolean</span>&nbsp;<span class="memberName">noneSatisfyWith</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a>&lt;? super T,&#8203;? super P&gt;&nbsp;predicate,
P&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
K&gt;</span>&nbsp;<span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a>&lt;K,&#8203;T&gt;</span>&nbsp;<span class="memberName">toMap</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends K&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
K,&#8203;
V&gt;</span>&nbsp;<span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a>&lt;K,&#8203;V&gt;</span>&nbsp;<span class="memberName">toMap</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends K&gt;&nbsp;keyFunction,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
K,&#8203;
V,&#8203;
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>&lt;K,&#8203;
V&gt;&gt;</span>&nbsp;<span class="returnType">R</span>&nbsp;<span class="memberName">toMap</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends K&gt;&nbsp;keyFunction,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;valueFunction,
R&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
K,&#8203;
V,&#8203;
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>&lt;K,&#8203;
V&gt;&gt;</span>&nbsp;<span class="returnType">M</span>&nbsp;<span class="memberName">addToMap</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends K&gt;&nbsp;keyFunction,
M&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
K,&#8203;
V,&#8203;
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>&lt;K,&#8203;
V&gt;&gt;</span>&nbsp;<span class="returnType">M</span>&nbsp;<span class="memberName">addToMap</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends K&gt;&nbsp;keyFunction,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;valueFunction,
M&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
K,&#8203;
V,&#8203;
R extends <a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a>&lt;K,&#8203;
V&gt;&gt;</span>
<span class="returnType">R</span>&nbsp;<span class="memberName">toMultimap</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends K&gt;&nbsp;keyFunction,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? 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>&lt;V&gt;&gt;&nbsp;valuesFunction,
R&nbsp;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&lt;String, String&gt; multimap =
Iterate.<b>toMultimap</b>(integers, each -&gt; "key:" + each, each -&gt; Lists.mutable.of("value:" + each), FastListMultimap.newMultimap());
</pre>
<p>
Example using an anonymous inner class:
<pre>
MutableMultimap&lt;String, String&gt; multimap =
Iterate.<b>groupByAndCollect</b>(integers,
new Function&lt;Integer, String&gt;()
{
public String valueOf(Integer each)
{
return "key:" + each;
}
}, new Function&lt;Integer, Iterable&lt;String&gt;&gt;()
{
public Iterable&lt;String&gt; 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>&nbsp;<span class="typeParameters">&lt;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>&lt;? super T&gt;&gt;</span>
<span class="returnType"><a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a>&lt;T&gt;</span>&nbsp;<span class="memberName">toSortedList</span>&#8203;(<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>&lt;T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a>&lt;T&gt;</span>&nbsp;<span class="memberName">toSortedList</span>&#8203;(<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>&lt;T&gt;&nbsp;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>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">sizeOf</span>&#8203;(<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>&lt;?&gt;&nbsp;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>&nbsp;<span class="returnType">boolean</span>&nbsp;<span class="memberName">contains</span>&#8203;(<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>&lt;?&gt;&nbsp;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>&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<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>&nbsp;<span class="memberName">toArray</span>&#8203;(<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>&lt;T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">T[]</span>&nbsp;<span class="memberName">toArray</span>&#8203;(<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>&lt;? extends T&gt;&nbsp;iterable,
T[]&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
V&gt;</span>&nbsp;<span class="returnType"><a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a>&lt;V,&#8203;T&gt;</span>&nbsp;<span class="memberName">groupBy</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
V,&#8203;
R extends <a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a>&lt;V,&#8203;
T&gt;&gt;</span>
<span class="returnType">R</span>&nbsp;<span class="memberName">groupBy</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;function,
R&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
K,&#8203;
V&gt;</span>&nbsp;<span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a>&lt;K,&#8203;V&gt;</span>&nbsp;<span class="memberName">aggregateInPlaceBy</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends K&gt;&nbsp;groupBy,
<a href="../../api/block/function/Function0.html" title="interface in org.eclipse.collections.api.block.function">Function0</a>&lt;? extends V&gt;&nbsp;zeroValueFactory,
<a href="../../api/block/procedure/Procedure2.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure2</a>&lt;? super V,&#8203;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
K,&#8203;
V&gt;</span>&nbsp;<span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a>&lt;K,&#8203;V&gt;</span>&nbsp;<span class="memberName">aggregateBy</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends K&gt;&nbsp;groupBy,
<a href="../../api/block/function/Function0.html" title="interface in org.eclipse.collections.api.block.function">Function0</a>&lt;? extends V&gt;&nbsp;zeroValueFactory,
<a href="../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a>&lt;? super V,&#8203;? super T,&#8203;? extends V&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
V&gt;</span>&nbsp;<span class="returnType"><a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a>&lt;V,&#8203;T&gt;</span>&nbsp;<span class="memberName">groupByEach</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? 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>&lt;V&gt;&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
V,&#8203;
R extends <a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a>&lt;V,&#8203;
T&gt;&gt;</span>
<span class="returnType">R</span>&nbsp;<span class="memberName">groupByEach</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? 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>&lt;V&gt;&gt;&nbsp;function,
R&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
K,&#8203;
V,&#8203;
R extends <a href="../../api/multimap/MutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">MutableMultimap</a>&lt;K,&#8203;
V&gt;&gt;</span>
<span class="returnType">R</span>&nbsp;<span class="memberName">groupByAndCollect</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends K&gt;&nbsp;groupByFunction,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;valueFunction,
R&nbsp;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&lt;String, String&gt; multimap =
Iterate.<b>groupByAndCollect</b>(integers, each -&gt; "key:" + each, each -&gt; "value:" + each, FastListMultimap.newMultimap());
</pre>
<p>
Example using an anonymous inner class:
<pre>
MutableMultimap&lt;String, String&gt; multimap =
Iterate.<b>groupByAndCollect</b>(integers,
new Function&lt;Integer, String&gt;()
{
public String valueOf(Integer each)
{
return "key:" + each;
}
}, new Function&lt;Integer, String&gt;()
{
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>&nbsp;<span class="typeParameters">&lt;V,&#8203;
T&gt;</span>&nbsp;<span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a>&lt;V,&#8203;T&gt;</span>&nbsp;<span class="memberName">groupByUniqueKey</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;V,&#8203;
T,&#8203;
R extends <a href="../../api/map/MutableMapIterable.html" title="interface in org.eclipse.collections.api.map">MutableMapIterable</a>&lt;V,&#8203;
T&gt;&gt;</span>
<span class="returnType">R</span>&nbsp;<span class="memberName">groupByUniqueKey</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;function,
R&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">T</span>&nbsp;<span class="memberName">min</span>&#8203;(<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>&lt;T&gt;&nbsp;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>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">T</span>&nbsp;<span class="memberName">max</span>&#8203;(<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>&lt;T&gt;&nbsp;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>&lt;? super T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">T</span>&nbsp;<span class="memberName">min</span>&#8203;(<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>&lt;T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">T</span>&nbsp;<span class="memberName">max</span>&#8203;(<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>&lt;T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">T</span>&nbsp;<span class="memberName">getOnly</span>&#8203;(<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>&lt;T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;X,&#8203;
Y&gt;</span>&nbsp;<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>&lt;<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a>&lt;X,&#8203;Y&gt;&gt;</span>&nbsp;<span class="memberName">zip</span>&#8203;(<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>&lt;X&gt;&nbsp;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>&lt;Y&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;X,&#8203;
Y,&#8203;
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>&lt;<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a>&lt;X,&#8203;
Y&gt;&gt;&gt;</span>
<span class="returnType">R</span>&nbsp;<span class="memberName">zip</span>&#8203;(<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>&lt;X&gt;&nbsp;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>&lt;Y&gt;&nbsp;ys,
R&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<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>&lt;<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a>&lt;T,&#8203;<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>&gt;&gt;</span>&nbsp;<span class="memberName">zipWithIndex</span>&#8203;(<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>&lt;T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
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>&lt;<a href="../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a>&lt;T,&#8203;
<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>&gt;&gt;&gt;</span>
<span class="returnType">R</span>&nbsp;<span class="memberName">zipWithIndex</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
R&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a>&lt;<a href="../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a>&lt;T&gt;&gt;</span>&nbsp;<span class="memberName">chunk</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
int&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<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>&nbsp;<span class="memberName">makeString</span>&#8203;(<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>&lt;T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<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>&nbsp;<span class="memberName">makeString</span>&#8203;(<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>&lt;T&gt;&nbsp;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>&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<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>&nbsp;<span class="memberName">makeString</span>&#8203;(<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>&lt;T&gt;&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">appendString</span>&#8203;(<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>&lt;T&gt;&nbsp;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>&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">appendString</span>&#8203;(<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>&lt;T&gt;&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">appendString</span>&#8203;(<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>&lt;T&gt;&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
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>&lt;? super V&gt;&gt;</span>&nbsp;<span class="returnType">T</span>&nbsp;<span class="memberName">maxBy</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
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>&lt;? super V&gt;&gt;</span>&nbsp;<span class="returnType">T</span>&nbsp;<span class="memberName">minBy</span>&#8203;(<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>&lt;T&gt;&nbsp;iterable,
<a href="../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;K,&#8203;
V&gt;</span>&nbsp;<span class="returnType"><a href="../multimap/bag/HashBagMultimap.html" title="class in org.eclipse.collections.impl.multimap.bag">HashBagMultimap</a>&lt;V,&#8203;K&gt;</span>&nbsp;<span class="memberName">flip</span>&#8203;(<span class="arguments"><a href="../../api/multimap/bag/BagMultimap.html" title="interface in org.eclipse.collections.api.multimap.bag">BagMultimap</a>&lt;K,&#8203;V&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;K,&#8203;
V&gt;</span>&nbsp;<span class="returnType"><a href="../multimap/bag/HashBagMultimap.html" title="class in org.eclipse.collections.impl.multimap.bag">HashBagMultimap</a>&lt;V,&#8203;K&gt;</span>&nbsp;<span class="memberName">flip</span>&#8203;(<span class="arguments"><a href="../../api/multimap/list/ListMultimap.html" title="interface in org.eclipse.collections.api.multimap.list">ListMultimap</a>&lt;K,&#8203;V&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;K,&#8203;
V&gt;</span>&nbsp;<span class="returnType"><a href="../multimap/set/UnifiedSetMultimap.html" title="class in org.eclipse.collections.impl.multimap.set">UnifiedSetMultimap</a>&lt;V,&#8203;K&gt;</span>&nbsp;<span class="memberName">flip</span>&#8203;(<span class="arguments"><a href="../../api/multimap/set/SetMultimap.html" title="interface in org.eclipse.collections.api.multimap.set">SetMultimap</a>&lt;K,&#8203;V&gt;&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</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 &#169; 2004&#x2013;2020. All rights reserved.</small></p>
</footer>
</div>
</div>
</body>
</html>