| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (14.0.2) on Sat Aug 08 22:45:01 CDT 2020 --> |
| <title>UnmodifiableSortedBag (Eclipse Collections - 10.3.0)</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <meta name="dc.created" content="2020-08-08"> |
| <meta name="description" content="declaration: package: org.eclipse.collections.impl.bag.sorted.mutable, class: UnmodifiableSortedBag"> |
| <meta name="generator" content="javadoc/ClassWriterImpl"> |
| <link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../../../script-dir/jquery-ui.css" title="Style"> |
| <script type="text/javascript" src="../../../../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../../../../script-dir/jszip/dist/jszip.min.js"></script> |
| <script type="text/javascript" src="../../../../../../../script-dir/jszip-utils/dist/jszip-utils.min.js"></script> |
| <!--[if IE]> |
| <script type="text/javascript" src="../../../../../../../script-dir/jszip-utils/dist/jszip-utils-ie.min.js"></script> |
| <![endif]--> |
| <script type="text/javascript" src="../../../../../../../script-dir/jquery-3.4.1.js"></script> |
| <script type="text/javascript" src="../../../../../../../script-dir/jquery-ui.js"></script> |
| </head> |
| <body class="class-declaration"> |
| <script type="text/javascript">var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":9,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10,"i65":10,"i66":10,"i67":10,"i68":10,"i69":10,"i70":10,"i71":10,"i72":10}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| var pathtoroot = "../../../../../../../"; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <div class="flexBox"> |
| <header role="banner" class="flexHeader"> |
| <nav role="navigation"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a id="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/UnmodifiableSortedBag.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <div class="navListSearch"><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </div> |
| </div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <div class="skipNav"><a id="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| </nav> |
| </header> |
| <div class="flexContent"> |
| <main role="main"> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">org.eclipse.collections.impl.bag.sorted.mutable</a></div> |
| <h1 title="Class UnmodifiableSortedBag" class="title">Class UnmodifiableSortedBag<T></h1> |
| </div> |
| <div class="contentContainer"> |
| <div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">java.lang.Object</a> |
| <div class="inheritance"><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">org.eclipse.collections.impl.collection.mutable.AbstractUnmodifiableMutableCollection</a><T> |
| <div class="inheritance">org.eclipse.collections.impl.bag.sorted.mutable.UnmodifiableSortedBag<T></div> |
| </div> |
| </div> |
| <section class="description"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io" class="externalLink">Serializable</a></code>, <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Cloneable</a></code>, <code><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><<a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><T>></code>, <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><T></code>, <code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><T></code>, <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><T></code>, <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><T></code>, <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><T></code>, <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><T></code>, <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><T></code>, <code><a href="../../../../api/InternalIterable.html" title="interface in org.eclipse.collections.api">InternalIterable</a><T></code>, <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><T></code>, <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><T></code>, <code><a href="../../../../api/ordered/SortedIterable.html" title="interface in org.eclipse.collections.api.ordered">SortedIterable</a><T></code>, <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><T></code></dd> |
| </dl> |
| <hr> |
| <pre>public class <span class="typeNameLabel">UnmodifiableSortedBag<T></span> |
| extends <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><T> |
| implements <a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><T>, <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io" class="externalLink">Serializable</a></pre> |
| <div class="block">An unmodifiable view of a SortedBag.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>4.2</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../api/bag/sorted/MutableSortedBag.html#asUnmodifiable()"><code>MutableSortedBag.asUnmodifiable()</code></a>, |
| <a href="../../../../../../../serialized-form.html#org.eclipse.collections.impl.bag.sorted.mutable.UnmodifiableSortedBag">Serialized Form</a></dd> |
| </dl> |
| </section> |
| <section class="summary"> |
| <ul class="blockList"> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <li class="blockList"> |
| <section class="methodSummary"><a id="method.summary"> |
| <!-- --> |
| </a> |
| <h2>Method Summary</h2> |
| <div class="memberSummary"> |
| <div role="tablist" aria-orientation="horizontal"><button role="tab" aria-selected="true" aria-controls="memberSummary_tabpanel" tabindex="0" onkeydown="switchTab(event)" id="t0" class="activeTableTab">All Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t1" class="tableTab" onclick="show(1);">Static Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t2" class="tableTab" onclick="show(2);">Instance Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t4" class="tableTab" onclick="show(8);">Concrete Methods</button></div> |
| <div id="memberSummary_tabpanel" role="tabpanel"> |
| <table aria-labelledby="t0"> |
| <thead> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| </thead> |
| <tbody> |
| <tr class="altColor" id="i0"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addOccurrences(T,int)">addOccurrences</a></span>​(<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a> item, |
| int occurrences)</code></th> |
| <td class="colLast"> |
| <div class="block">Add number of <code>occurrences</code> for an <code>item</code>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i1"> |
| <td class="colFirst"><code><a href="../../../../api/LazyIterable.html" title="interface in org.eclipse.collections.api">LazyIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#asReversed()">asReversed</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a reversed view of this ReversibleIterable.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i2"> |
| <td class="colFirst"><code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#asSynchronized()">asSynchronized</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a synchronized wrapper backed by this collection.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i3"> |
| <td class="colFirst"><code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#asUnmodifiable()">asUnmodifiable</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns an unmodifiable view of this collection.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i4"> |
| <td class="colFirst"><code><a href="../../../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><<a href="../../../../api/tuple/primitive/ObjectIntPair.html" title="interface in org.eclipse.collections.api.tuple.primitive">ObjectIntPair</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#bottomOccurrences(int)">bottomOccurrences</a></span>​(int count)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the <code>count</code> least frequently occurring items.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i5"> |
| <td class="colFirst"><code><a href="UnmodifiableSortedBag.html" title="class in org.eclipse.collections.impl.bag.sorted.mutable">UnmodifiableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#clone()">clone</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor" id="i6"> |
| <td class="colFirst"><code><V> <a href="../../../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><V></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collect(org.eclipse.collections.api.block.function.Function)">collect</a></span>​(<a href="../../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? extends V> function)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new MutableCollection with the results of applying the specified function to each element of the source |
| collection.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i7"> |
| <td class="colFirst"><code><a href="../../../../api/list/primitive/MutableBooleanList.html" title="interface in org.eclipse.collections.api.list.primitive">MutableBooleanList</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction)">collectBoolean</a></span>​(<a href="../../../../api/block/function/primitive/BooleanFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">BooleanFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> booleanFunction)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new primitive <code>boolean</code> iterable with the results of applying the specified function on each element |
| of the source collection.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i8"> |
| <td class="colFirst"><code><a href="../../../../api/list/primitive/MutableByteList.html" title="interface in org.eclipse.collections.api.list.primitive">MutableByteList</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction)">collectByte</a></span>​(<a href="../../../../api/block/function/primitive/ByteFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ByteFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> byteFunction)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new primitive <code>byte</code> iterable with the results of applying the specified function on each element |
| of the source collection.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i9"> |
| <td class="colFirst"><code><a href="../../../../api/list/primitive/MutableCharList.html" title="interface in org.eclipse.collections.api.list.primitive">MutableCharList</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction)">collectChar</a></span>​(<a href="../../../../api/block/function/primitive/CharFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">CharFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> charFunction)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new primitive <code>char</code> iterable with the results of applying the specified function on each element |
| of the source collection.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i10"> |
| <td class="colFirst"><code><a href="../../../../api/list/primitive/MutableDoubleList.html" title="interface in org.eclipse.collections.api.list.primitive">MutableDoubleList</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction)">collectDouble</a></span>​(<a href="../../../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> doubleFunction)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new primitive <code>double</code> iterable with the results of applying the specified function on each element |
| of the source collection.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i11"> |
| <td class="colFirst"><code><a href="../../../../api/list/primitive/MutableFloatList.html" title="interface in org.eclipse.collections.api.list.primitive">MutableFloatList</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction)">collectFloat</a></span>​(<a href="../../../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> floatFunction)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new primitive <code>float</code> iterable with the results of applying the specified function on each element |
| of the source collection.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i12"> |
| <td class="colFirst"><code><V> <a href="../../../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><V></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectIf(org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function)">collectIf</a></span>​(<a href="../../../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> predicate, |
| <a href="../../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? extends V> function)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new MutableCollection with the results of applying the specified function to each element of the source |
| collection, but only for elements that evaluate to true for the specified predicate.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i13"> |
| <td class="colFirst"><code><a href="../../../../api/list/primitive/MutableIntList.html" title="interface in org.eclipse.collections.api.list.primitive">MutableIntList</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction)">collectInt</a></span>​(<a href="../../../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> intFunction)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new primitive <code>int</code> iterable with the results of applying the specified function on each element |
| of the source collection.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i14"> |
| <td class="colFirst"><code><a href="../../../../api/list/primitive/MutableLongList.html" title="interface in org.eclipse.collections.api.list.primitive">MutableLongList</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction)">collectLong</a></span>​(<a href="../../../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> longFunction)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new primitive <code>long</code> iterable with the results of applying the specified function on each element |
| of the source collection.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i15"> |
| <td class="colFirst"><code><a href="../../../../api/list/primitive/MutableShortList.html" title="interface in org.eclipse.collections.api.list.primitive">MutableShortList</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction)">collectShort</a></span>​(<a href="../../../../api/block/function/primitive/ShortFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ShortFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> shortFunction)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new primitive <code>short</code> iterable with the results of applying the specified function on each element |
| of the source collection.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i16"> |
| <td class="colFirst"><code><P,​ |
| A> <a href="../../../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><A></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectWith(org.eclipse.collections.api.block.function.Function2,P)">collectWith</a></span>​(<a href="../../../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? super P,​? extends A> function, |
| P parameter)</code></th> |
| <td class="colLast"> |
| <div class="block">Same as <a href="../../../../api/RichIterable.html#collect(org.eclipse.collections.api.block.function.Function)"><code>RichIterable.collect(Function)</code></a> with a <code>Function2</code> and specified parameter which is passed to the block.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i17"> |
| <td class="colFirst"><code><V> <a href="../../../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><V></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectWithIndex(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction)">collectWithIndex</a></span>​(<a href="../../../../api/block/function/primitive/ObjectIntToObjectFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ObjectIntToObjectFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? extends V> function)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new OrderedIterable using results obtained by applying the specified function to each element |
| and its corresponding index.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i18"> |
| <td class="colFirst"><code><V,​ |
| R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><V>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectWithIndex(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction,R)">collectWithIndex</a></span>​(<a href="../../../../api/block/function/primitive/ObjectIntToObjectFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ObjectIntToObjectFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? extends V> function, |
| R target)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds elements to the target Collection using results obtained by applying the specified function to each element |
| and its corresponding index.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i19"> |
| <td class="colFirst"><code><V> <a href="../../../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><V></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectWithOccurrences(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction)">collectWithOccurrences</a></span>​(<a href="../../../../api/block/function/primitive/ObjectIntToObjectFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ObjectIntToObjectFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? extends V> function)</code></th> |
| <td class="colLast"> |
| <div class="block">Iterates over the unique elements and their occurrences and collects the results of applying the specified function.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i20"> |
| <td class="colFirst"><code><V,​ |
| R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><V>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collectWithOccurrences(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction,R)">collectWithOccurrences</a></span>​(<a href="../../../../api/block/function/primitive/ObjectIntToObjectFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ObjectIntToObjectFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? extends V> function, |
| R target)</code></th> |
| <td class="colLast"> |
| <div class="block">Iterates over the unique elements and their occurrences and collects the results of applying the |
| specified function into the target collection.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i21"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#comparator()">comparator</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the comparator used to order the elements in this bag, or null if this bag uses the natural ordering of |
| its elements.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i22"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#compareTo(org.eclipse.collections.api.bag.sorted.SortedBag)">compareTo</a></span>​(<a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> o)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i23"> |
| <td class="colFirst"><code><S> boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#corresponds(org.eclipse.collections.api.ordered.OrderedIterable,org.eclipse.collections.api.block.predicate.Predicate2)">corresponds</a></span>​(<a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><S> other, |
| <a href="../../../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? super S> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns true if both OrderedIterables have the same length |
| and <code>predicate</code> returns true for all corresponding elements e1 of |
| this <code>OrderedIterable</code> and e2 of <code>other</code>.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i24"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#detectIndex(org.eclipse.collections.api.block.predicate.Predicate)">detectIndex</a></span>​(<a href="../../../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the index of the first element of the <code>OrderedIterable</code> for which the <code>predicate</code> evaluates to true.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i25"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#detectLastIndex(org.eclipse.collections.api.block.predicate.Predicate)">detectLastIndex</a></span>​(<a href="../../../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the index of the last element of the <code>ReversibleIterable</code> for which the <code>predicate</code> evaluates to true.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i26"> |
| <td class="colFirst"><code><a href="../../../../api/set/sorted/MutableSortedSet.html" title="interface in org.eclipse.collections.api.set.sorted">MutableSortedSet</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#distinct()">distinct</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new <code>SortedIterable</code> containing the distinct elements in this iterable.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i27"> |
| <td class="colFirst"><code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#drop(int)">drop</a></span>​(int count)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns an iterable after skipping the first <code>count</code> elements |
| or an empty iterable if the <code>count</code> is greater than the length of the iterable.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i28"> |
| <td class="colFirst"><code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#dropWhile(org.eclipse.collections.api.block.predicate.Predicate)">dropWhile</a></span>​(<a href="../../../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the final elements that do not satisfy the Predicate.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i29"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#equals(java.lang.Object)">equals</a></span>​(<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> obj)</code></th> |
| <td class="colLast"> |
| <div class="block">Two bags <code>b1</code> and <code>b2</code> are equal if <code>m1.toMapOfItemToCount().equals(m2.toMapOfItemToCount())</code>.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i30"> |
| <td class="colFirst"><code><V> <a href="../../../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><V></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#flatCollect(org.eclipse.collections.api.block.function.Function)">flatCollect</a></span>​(<a href="../../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><V>> function)</code></th> |
| <td class="colLast"> |
| <div class="block"><code>flatCollect</code> is a special case of <a href="../../../../api/RichIterable.html#collect(org.eclipse.collections.api.block.function.Function)"><code>RichIterable.collect(Function)</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i31"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#forEach(int,int,org.eclipse.collections.api.block.procedure.Procedure)">forEach</a></span>​(int startIndex, |
| int endIndex, |
| <a href="../../../../api/block/procedure/Procedure.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> procedure)</code></th> |
| <td class="colLast"> |
| <div class="block">Iterates over the section of the iterable covered by the specified inclusive indexes.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i32"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#forEachWithIndex(int,int,org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure)">forEachWithIndex</a></span>​(int fromIndex, |
| int toIndex, |
| <a href="../../../../api/block/procedure/primitive/ObjectIntProcedure.html" title="interface in org.eclipse.collections.api.block.procedure.primitive">ObjectIntProcedure</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> objectIntProcedure)</code></th> |
| <td class="colLast"> |
| <div class="block">Iterates over the section of the iterable covered by the specified inclusive indexes.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i33"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure)">forEachWithOccurrences</a></span>​(<a href="../../../../api/block/procedure/primitive/ObjectIntProcedure.html" title="interface in org.eclipse.collections.api.block.procedure.primitive">ObjectIntProcedure</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> procedure)</code></th> |
| <td class="colLast"> |
| <div class="block">For each distinct item, with the number of occurrences, execute the specified procedure.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i34"> |
| <td class="colFirst"><code><V> <a href="../../../../api/multimap/sortedbag/MutableSortedBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.sortedbag">MutableSortedBagMultimap</a><V,​<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#groupBy(org.eclipse.collections.api.block.function.Function)">groupBy</a></span>​(<a href="../../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? extends V> function)</code></th> |
| <td class="colLast"> |
| <div class="block">For each element of the iterable, the function is evaluated and the results of these evaluations are collected |
| into a new multimap, where the transformed value is the key and the original values are added to the same (or similar) |
| species of collection as the source iterable.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i35"> |
| <td class="colFirst"><code><V> <a href="../../../../api/multimap/sortedbag/MutableSortedBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.sortedbag">MutableSortedBagMultimap</a><V,​<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#groupByEach(org.eclipse.collections.api.block.function.Function)">groupByEach</a></span>​(<a href="../../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><V>> function)</code></th> |
| <td class="colLast"> |
| <div class="block">Similar to <a href="../../../../api/RichIterable.html#groupBy(org.eclipse.collections.api.block.function.Function)"><code>RichIterable.groupBy(Function)</code></a>, except the result of evaluating function will return a collection of keys |
| for each value.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i36"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hashCode()">hashCode</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the hash code for this Bag, defined as <em>this.<a href="../../../../api/bag/Bag.html#toMapOfItemToCount()"><code>Bag.toMapOfItemToCount()</code></a>.hashCode()</em>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i37"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#indexOf(java.lang.Object)">indexOf</a></span>​(<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> object)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the index of the first occurrence of the specified item |
| in this iterable, or -1 if this iterable does not contain the item.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i38"> |
| <td class="colFirst"><code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newEmpty()">newEmpty</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Creates a new empty mutable version of the same collection type.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i39"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#occurrencesOf(java.lang.Object)">occurrencesOf</a></span>​(<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> item)</code></th> |
| <td class="colLast"> |
| <div class="block">The occurrences of a distinct item in the bag.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i40"> |
| <td class="colFirst"><code>static <E,​ |
| S extends <a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><E>><br><a href="UnmodifiableSortedBag.html" title="class in org.eclipse.collections.impl.bag.sorted.mutable">UnmodifiableSortedBag</a><E></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#of(S)">of</a></span>​(S bag)</code></th> |
| <td class="colLast"> |
| <div class="block">This method will take a MutableSortedBag and wrap it directly in a UnmodifiableSortedBag.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i41"> |
| <td class="colFirst"><code><a href="../../../../api/partition/bag/sorted/PartitionMutableSortedBag.html" title="interface in org.eclipse.collections.api.partition.bag.sorted">PartitionMutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#partition(org.eclipse.collections.api.block.predicate.Predicate)">partition</a></span>​(<a href="../../../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Filters a collection into a PartitionedIterable based on the evaluation of the predicate.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i42"> |
| <td class="colFirst"><code><a href="../../../../api/partition/bag/sorted/PartitionMutableSortedBag.html" title="interface in org.eclipse.collections.api.partition.bag.sorted">PartitionMutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#partitionWhile(org.eclipse.collections.api.block.predicate.Predicate)">partitionWhile</a></span>​(<a href="../../../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a Partition of the initial elements that satisfy the Predicate and the remaining elements.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i43"> |
| <td class="colFirst"><code><P> <a href="../../../../api/partition/bag/sorted/PartitionMutableSortedBag.html" title="interface in org.eclipse.collections.api.partition.bag.sorted">PartitionMutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#partitionWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">partitionWith</a></span>​(<a href="../../../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? super P> predicate, |
| P parameter)</code></th> |
| <td class="colLast"> |
| <div class="block">Filters a collection into a PartitionIterable based on the evaluation of the predicate.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i44"> |
| <td class="colFirst"><code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reject(org.eclipse.collections.api.block.predicate.Predicate)">reject</a></span>​(<a href="../../../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a MutableCollection with all elements that evaluate to false for the specified predicate.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i45"> |
| <td class="colFirst"><code><P> <a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#rejectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">rejectWith</a></span>​(<a href="../../../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? super P> predicate, |
| P parameter)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a MutableCollection with all elements that evaluate to false for the specified predicate2 and parameter.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i46"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeOccurrences(java.lang.Object,int)">removeOccurrences</a></span>​(<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> item, |
| int occurrences)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i47"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reverseForEach(org.eclipse.collections.api.block.procedure.Procedure)">reverseForEach</a></span>​(<a href="../../../../api/block/procedure/Procedure.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> procedure)</code></th> |
| <td class="colLast"> |
| <div class="block">Evaluates the procedure for each element of the list iterating in reverse order.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i48"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reverseForEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure)">reverseForEachWithIndex</a></span>​(<a href="../../../../api/block/procedure/primitive/ObjectIntProcedure.html" title="interface in org.eclipse.collections.api.block.procedure.primitive">ObjectIntProcedure</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> procedure)</code></th> |
| <td class="colLast"> |
| <div class="block">Evaluates the procedure for each element and it's index in reverse order.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i49"> |
| <td class="colFirst"><code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#select(org.eclipse.collections.api.block.predicate.Predicate)">select</a></span>​(<a href="../../../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a MutableCollection with all elements that evaluate to true for the specified predicate.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i50"> |
| <td class="colFirst"><code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#selectByOccurrences(org.eclipse.collections.api.block.predicate.primitive.IntPredicate)">selectByOccurrences</a></span>​(<a href="../../../../api/block/predicate/primitive/IntPredicate.html" title="interface in org.eclipse.collections.api.block.predicate.primitive">IntPredicate</a> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns all elements of the bag that have a number of occurrences that satisfy the predicate.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i51"> |
| <td class="colFirst"><code><S> <a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><S></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#selectInstancesOf(java.lang.Class)">selectInstancesOf</a></span>​(<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><S> clazz)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns all elements of the source collection that are instances of the Class <code>clazz</code>.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i52"> |
| <td class="colFirst"><code><a href="../../../../api/set/sorted/MutableSortedSet.html" title="interface in org.eclipse.collections.api.set.sorted">MutableSortedSet</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#selectUnique()">selectUnique</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a set containing all elements of the bag that have exactly one occurrence.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i53"> |
| <td class="colFirst"><code><P> <a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#selectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">selectWith</a></span>​(<a href="../../../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? super P> predicate, |
| P parameter)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a MutableCollection with all elements that evaluate to true for the specified predicate2 and parameter.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i54"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setOccurrences(T,int)">setOccurrences</a></span>​(<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a> item, |
| int occurrences)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i55"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sizeDistinct()">sizeDistinct</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">The size of the Bag when counting only distinct elements.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i56"> |
| <td class="colFirst"><code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#take(int)">take</a></span>​(int count)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the first <code>count</code> elements of the iterable |
| or all the elements in the iterable if <code>count</code> is greater than the length of |
| the iterable.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i57"> |
| <td class="colFirst"><code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#takeWhile(org.eclipse.collections.api.block.predicate.Predicate)">takeWhile</a></span>​(<a href="../../../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the initial elements that satisfy the Predicate.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i58"> |
| <td class="colFirst"><code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#tap(org.eclipse.collections.api.block.procedure.Procedure)">tap</a></span>​(<a href="../../../../api/block/procedure/Procedure.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> procedure)</code></th> |
| <td class="colLast"> |
| <div class="block">Executes the Procedure for each element in the iterable and returns <code>this</code>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i59"> |
| <td class="colFirst"><code><a href="../../../../api/bag/sorted/ImmutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">ImmutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toImmutable()">toImmutable</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Converts this <code>MutableCollection</code> to an <code>ImmutableCollection</code>.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i60"> |
| <td class="colFirst"><code><a href="../../../../api/map/sorted/MutableSortedMap.html" title="interface in org.eclipse.collections.api.map.sorted">MutableSortedMap</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang" class="externalLink">Integer</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toMapOfItemToCount()">toMapOfItemToCount</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Converts the Bag to a Map of the Item type to its count as an Integer.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i61"> |
| <td class="colFirst"><code><a href="../../../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><<a href="../../../../api/tuple/primitive/ObjectIntPair.html" title="interface in org.eclipse.collections.api.tuple.primitive">ObjectIntPair</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#topOccurrences(int)">topOccurrences</a></span>​(int count)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the <code>count</code> most frequently occurring items.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i62"> |
| <td class="colFirst"><code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toReversed()">toReversed</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new ReversibleIterable in reverse order.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i63"> |
| <td class="colFirst"><code><a href="../../../../api/stack/MutableStack.html" title="interface in org.eclipse.collections.api.stack">MutableStack</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toStack()">toStack</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Converts the OrderedIterable to a mutable MutableStack implementation.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i64"> |
| <td class="colFirst"><code><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="#toStringOfItemToCount()">toStringOfItemToCount</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a string representation of this bag.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i65"> |
| <td class="colFirst"><code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#with(T)">with</a></span>​(<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a> element)</code></th> |
| <td class="colLast"> |
| <div class="block">This method allows mutable and fixed size collections the ability to add elements to their existing elements.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i66"> |
| <td class="colFirst"><code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#withAll(java.lang.Iterable)">withAll</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><? extends <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> elements)</code></th> |
| <td class="colLast"> |
| <div class="block">This method allows mutable and fixed size collections the ability to add multiple elements to their existing |
| elements.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i67"> |
| <td class="colFirst"><code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#without(T)">without</a></span>​(<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a> element)</code></th> |
| <td class="colLast"> |
| <div class="block">This method allows mutable and fixed size collections the ability to remove elements from their existing elements.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i68"> |
| <td class="colFirst"><code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#withoutAll(java.lang.Iterable)">withoutAll</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><? extends <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> elements)</code></th> |
| <td class="colLast"> |
| <div class="block">This method allows mutable and fixed size collections the ability to remove multiple elements from their existing |
| elements.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i69"> |
| <td class="colFirst"><code><S> <a href="../../../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><<a href="../../../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​S>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#zip(java.lang.Iterable)">zip</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><S> that)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a <code>RichIterable</code> formed from this <code>RichIterable</code> and another <code>RichIterable</code> by |
| combining corresponding elements in pairs.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i70"> |
| <td class="colFirst"><code><S,​ |
| R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><<a href="../../../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​ |
| S>>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#zip(java.lang.Iterable,R)">zip</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><S> that, |
| R target)</code></th> |
| <td class="colLast"> |
| <div class="block">Same as <a href="../../../../api/RichIterable.html#zip(java.lang.Iterable)"><code>RichIterable.zip(Iterable)</code></a> but uses <code>target</code> for output.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i71"> |
| <td class="colFirst"><code><a href="../../../../api/set/sorted/MutableSortedSet.html" title="interface in org.eclipse.collections.api.set.sorted">MutableSortedSet</a><<a href="../../../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang" class="externalLink">Integer</a>>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#zipWithIndex()">zipWithIndex</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Zips this <code>RichIterable</code> with its indices.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i72"> |
| <td class="colFirst"><code><R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><<a href="../../../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​ |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang" class="externalLink">Integer</a>>>><br>R</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#zipWithIndex(R)">zipWithIndex</a></span>​(R target)</code></th> |
| <td class="colLast"> |
| <div class="block">Same as <a href="../../../../api/RichIterable.html#zipWithIndex()"><code>RichIterable.zipWithIndex()</code></a> but uses <code>target</code> for output.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| </div> |
| <div class="inheritedList"> |
| <h3>Methods inherited from class org.eclipse.collections.impl.collection.mutable.<a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a></h3> |
| <a id="methods.inherited.from.class.org.eclipse.collections.impl.collection.mutable.AbstractUnmodifiableMutableCollection"> |
| <!-- --> |
| </a><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#add(T)">add</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#addAll(java.util.Collection)">addAll</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#addAllIterable(java.lang.Iterable)">addAllIterable</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#aggregateInPlaceBy(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function0,org.eclipse.collections.api.block.procedure.Procedure2)">aggregateInPlaceBy</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#allSatisfy(org.eclipse.collections.api.block.predicate.Predicate)">allSatisfy</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#allSatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">allSatisfyWith</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#anySatisfy(org.eclipse.collections.api.block.predicate.Predicate)">anySatisfy</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#anySatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">anySatisfyWith</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#appendString(java.lang.Appendable)">appendString</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#appendString(java.lang.Appendable,java.lang.String)">appendString</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#appendString(java.lang.Appendable,java.lang.String,java.lang.String,java.lang.String)">appendString</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#asLazy()">asLazy</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#chunk(int)">chunk</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#clear()">clear</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collect(org.eclipse.collections.api.block.function.Function,R)">collect</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction,R)">collectBoolean</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction,R)">collectByte</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction,R)">collectChar</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction,R)">collectDouble</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction,R)">collectFloat</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collectIf(org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function,R)">collectIf</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction,R)">collectInt</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction,R)">collectLong</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction,R)">collectShort</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collectWith(org.eclipse.collections.api.block.function.Function2,P,R)">collectWith</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#contains(java.lang.Object)">contains</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#containsAll(java.util.Collection)">containsAll</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#containsAllArguments(java.lang.Object...)">containsAllArguments</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#containsAllIterable(java.lang.Iterable)">containsAllIterable</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#count(org.eclipse.collections.api.block.predicate.Predicate)">count</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#countWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">countWith</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#detect(org.eclipse.collections.api.block.predicate.Predicate)">detect</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#detectIfNone(org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function0)">detectIfNone</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#detectOptional(org.eclipse.collections.api.block.predicate.Predicate)">detectOptional</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#detectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">detectWith</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#detectWithIfNone(org.eclipse.collections.api.block.predicate.Predicate2,P,org.eclipse.collections.api.block.function.Function0)">detectWithIfNone</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#detectWithOptional(org.eclipse.collections.api.block.predicate.Predicate2,P)">detectWithOptional</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#each(org.eclipse.collections.api.block.procedure.Procedure)">each</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#flatCollect(org.eclipse.collections.api.block.function.Function,R)">flatCollect</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#flatCollectBoolean(org.eclipse.collections.api.block.function.Function,R)">flatCollectBoolean</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#flatCollectByte(org.eclipse.collections.api.block.function.Function,R)">flatCollectByte</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#flatCollectChar(org.eclipse.collections.api.block.function.Function,R)">flatCollectChar</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#flatCollectDouble(org.eclipse.collections.api.block.function.Function,R)">flatCollectDouble</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#flatCollectFloat(org.eclipse.collections.api.block.function.Function,R)">flatCollectFloat</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#flatCollectInt(org.eclipse.collections.api.block.function.Function,R)">flatCollectInt</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#flatCollectLong(org.eclipse.collections.api.block.function.Function,R)">flatCollectLong</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#flatCollectShort(org.eclipse.collections.api.block.function.Function,R)">flatCollectShort</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#forEachWith(org.eclipse.collections.api.block.procedure.Procedure2,P)">forEachWith</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure)">forEachWithIndex</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#getFirst()">getFirst</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#getLast()">getLast</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#getOnly()">getOnly</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#groupBy(org.eclipse.collections.api.block.function.Function,R)">groupBy</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#groupByEach(org.eclipse.collections.api.block.function.Function,R)">groupByEach</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#groupByUniqueKey(org.eclipse.collections.api.block.function.Function)">groupByUniqueKey</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#groupByUniqueKey(org.eclipse.collections.api.block.function.Function,R)">groupByUniqueKey</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#injectInto(double,org.eclipse.collections.api.block.function.primitive.DoubleObjectToDoubleFunction)">injectInto</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#injectInto(float,org.eclipse.collections.api.block.function.primitive.FloatObjectToFloatFunction)">injectInto</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#injectInto(int,org.eclipse.collections.api.block.function.primitive.IntObjectToIntFunction)">injectInto</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#injectInto(long,org.eclipse.collections.api.block.function.primitive.LongObjectToLongFunction)">injectInto</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#injectInto(IV,org.eclipse.collections.api.block.function.Function2)">injectInto</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#injectIntoWith(IV,org.eclipse.collections.api.block.function.Function3,P)">injectIntoWith</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#into(R)">into</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#isEmpty()">isEmpty</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#iterator()">iterator</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#makeString()">makeString</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#makeString(java.lang.String)">makeString</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#makeString(java.lang.String,java.lang.String,java.lang.String)">makeString</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#max()">max</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#max(java.util.Comparator)">max</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#maxBy(org.eclipse.collections.api.block.function.Function)">maxBy</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#min()">min</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#min(java.util.Comparator)">min</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#minBy(org.eclipse.collections.api.block.function.Function)">minBy</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#noneSatisfy(org.eclipse.collections.api.block.predicate.Predicate)">noneSatisfy</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#noneSatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">noneSatisfyWith</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#notEmpty()">notEmpty</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#reject(org.eclipse.collections.api.block.predicate.Predicate,R)">reject</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#rejectWith(org.eclipse.collections.api.block.predicate.Predicate2,P,R)">rejectWith</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#remove(java.lang.Object)">remove</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#removeAll(java.util.Collection)">removeAll</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#removeAllIterable(java.lang.Iterable)">removeAllIterable</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#removeIf(org.eclipse.collections.api.block.predicate.Predicate)">removeIf</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#removeIfWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">removeIfWith</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#retainAll(java.util.Collection)">retainAll</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#retainAllIterable(java.lang.Iterable)">retainAllIterable</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#select(org.eclipse.collections.api.block.predicate.Predicate,R)">select</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#selectAndRejectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">selectAndRejectWith</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#selectWith(org.eclipse.collections.api.block.predicate.Predicate2,P,R)">selectWith</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#size()">size</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#sumByDouble(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.primitive.DoubleFunction)">sumByDouble</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#sumByFloat(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.primitive.FloatFunction)">sumByFloat</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#sumByInt(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.primitive.IntFunction)">sumByInt</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#sumByLong(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.primitive.LongFunction)">sumByLong</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#sumOfDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction)">sumOfDouble</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#sumOfFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction)">sumOfFloat</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#sumOfInt(org.eclipse.collections.api.block.function.primitive.IntFunction)">sumOfInt</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#sumOfLong(org.eclipse.collections.api.block.function.primitive.LongFunction)">sumOfLong</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toArray()">toArray</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toArray(S%5B%5D)">toArray</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toBag()">toBag</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toBiMap(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">toBiMap</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toList()">toList</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toMap(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">toMap</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toMap(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)">toMap</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toSet()">toSet</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toSortedBag()">toSortedBag</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toSortedBag(java.util.Comparator)">toSortedBag</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toSortedBagBy(org.eclipse.collections.api.block.function.Function)">toSortedBagBy</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toSortedList()">toSortedList</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toSortedList(java.util.Comparator)">toSortedList</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toSortedListBy(org.eclipse.collections.api.block.function.Function)">toSortedListBy</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toSortedMap(java.util.Comparator,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">toSortedMap</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toSortedMap(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">toSortedMap</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toSortedMapBy(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">toSortedMapBy</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toSortedSet()">toSortedSet</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toSortedSet(java.util.Comparator)">toSortedSet</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toSortedSetBy(org.eclipse.collections.api.block.function.Function)">toSortedSetBy</a>, <a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toString()">toString</a></code></div> |
| <div class="inheritedList"> |
| <h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></h3> |
| <a id="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink">wait</a></code></div> |
| <div class="inheritedList"> |
| <h3>Methods inherited from interface org.eclipse.collections.api.bag.<a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a></h3> |
| <a id="methods.inherited.from.class.org.eclipse.collections.api.bag.Bag"> |
| <!-- --> |
| </a><code><a href="../../../../api/bag/Bag.html#aggregateBy(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function0,org.eclipse.collections.api.block.function.Function2,R)">aggregateBy</a>, <a href="../../../../api/bag/Bag.html#reduceInPlace(java.util.function.Supplier,java.util.function.BiConsumer)">reduceInPlace</a>, <a href="../../../../api/bag/Bag.html#reduceInPlace(java.util.stream.Collector)">reduceInPlace</a>, <a href="../../../../api/bag/Bag.html#summarizeDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction)">summarizeDouble</a>, <a href="../../../../api/bag/Bag.html#summarizeFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction)">summarizeFloat</a>, <a href="../../../../api/bag/Bag.html#summarizeInt(org.eclipse.collections.api.block.function.primitive.IntFunction)">summarizeInt</a>, <a href="../../../../api/bag/Bag.html#summarizeLong(org.eclipse.collections.api.block.function.primitive.LongFunction)">summarizeLong</a></code></div> |
| <div class="inheritedList"> |
| <h3>Methods inherited from interface java.util.<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></h3> |
| <a id="methods.inherited.from.class.java.util.Collection"> |
| <!-- --> |
| </a><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#add(E)" title="class or interface in java.util" class="externalLink">add</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#addAll(java.util.Collection)" title="class or interface in java.util" class="externalLink">addAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#clear()" title="class or interface in java.util" class="externalLink">clear</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#contains(java.lang.Object)" title="class or interface in java.util" class="externalLink">contains</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#containsAll(java.util.Collection)" title="class or interface in java.util" class="externalLink">containsAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#isEmpty()" title="class or interface in java.util" class="externalLink">isEmpty</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#iterator()" title="class or interface in java.util" class="externalLink">iterator</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#parallelStream()" title="class or interface in java.util" class="externalLink">parallelStream</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#remove(java.lang.Object)" title="class or interface in java.util" class="externalLink">remove</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#removeAll(java.util.Collection)" title="class or interface in java.util" class="externalLink">removeAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#removeIf(java.util.function.Predicate)" title="class or interface in java.util" class="externalLink">removeIf</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#retainAll(java.util.Collection)" title="class or interface in java.util" class="externalLink">retainAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#size()" title="class or interface in java.util" class="externalLink">size</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#spliterator()" title="class or interface in java.util" class="externalLink">spliterator</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#stream()" title="class or interface in java.util" class="externalLink">stream</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#toArray()" title="class or interface in java.util" class="externalLink">toArray</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#toArray(java.util.function.IntFunction)" title="class or interface in java.util" class="externalLink">toArray</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#toArray(T%5B%5D)" title="class or interface in java.util" class="externalLink">toArray</a></code></div> |
| <div class="inheritedList"> |
| <h3>Methods inherited from interface org.eclipse.collections.api.<a href="../../../../api/InternalIterable.html" title="interface in org.eclipse.collections.api">InternalIterable</a></h3> |
| <a id="methods.inherited.from.class.org.eclipse.collections.api.InternalIterable"> |
| <!-- --> |
| </a><code><a href="../../../../api/InternalIterable.html#forEach(java.util.function.Consumer)">forEach</a>, <a href="../../../../api/InternalIterable.html#forEachWith(org.eclipse.collections.api.block.procedure.Procedure2,P)">forEachWith</a></code></div> |
| <div class="inheritedList"> |
| <h3>Methods inherited from interface org.eclipse.collections.api.collection.<a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a></h3> |
| <a id="methods.inherited.from.class.org.eclipse.collections.api.collection.MutableCollection"> |
| <!-- --> |
| </a><code><a href="../../../../api/collection/MutableCollection.html#addAllIterable(java.lang.Iterable)">addAllIterable</a>, <a href="../../../../api/collection/MutableCollection.html#aggregateBy(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function0,org.eclipse.collections.api.block.function.Function2)">aggregateBy</a>, <a href="../../../../api/collection/MutableCollection.html#aggregateInPlaceBy(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function0,org.eclipse.collections.api.block.procedure.Procedure2)">aggregateInPlaceBy</a>, <a href="../../../../api/collection/MutableCollection.html#flatCollectWith(org.eclipse.collections.api.block.function.Function2,P)">flatCollectWith</a>, <a href="../../../../api/collection/MutableCollection.html#groupByUniqueKey(org.eclipse.collections.api.block.function.Function)">groupByUniqueKey</a>, <a href="../../../../api/collection/MutableCollection.html#injectIntoWith(IV,org.eclipse.collections.api.block.function.Function3,P)">injectIntoWith</a>, <a href="../../../../api/collection/MutableCollection.html#removeAllIterable(java.lang.Iterable)">removeAllIterable</a>, <a href="../../../../api/collection/MutableCollection.html#removeIf(org.eclipse.collections.api.block.predicate.Predicate)">removeIf</a>, <a href="../../../../api/collection/MutableCollection.html#removeIfWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">removeIfWith</a>, <a href="../../../../api/collection/MutableCollection.html#retainAllIterable(java.lang.Iterable)">retainAllIterable</a>, <a href="../../../../api/collection/MutableCollection.html#selectAndRejectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">selectAndRejectWith</a>, <a href="../../../../api/collection/MutableCollection.html#sumByDouble(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.primitive.DoubleFunction)">sumByDouble</a>, <a href="../../../../api/collection/MutableCollection.html#sumByFloat(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.primitive.FloatFunction)">sumByFloat</a>, <a href="../../../../api/collection/MutableCollection.html#sumByInt(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.primitive.IntFunction)">sumByInt</a>, <a href="../../../../api/collection/MutableCollection.html#sumByLong(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.primitive.LongFunction)">sumByLong</a></code></div> |
| <div class="inheritedList"> |
| <h3>Methods inherited from interface org.eclipse.collections.api.bag.sorted.<a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a></h3> |
| <a id="methods.inherited.from.class.org.eclipse.collections.api.bag.sorted.MutableSortedBag"> |
| <!-- --> |
| </a><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#countBy(org.eclipse.collections.api.block.function.Function)">countBy</a>, <a href="../../../../api/bag/sorted/MutableSortedBag.html#countByEach(org.eclipse.collections.api.block.function.Function)">countByEach</a>, <a href="../../../../api/bag/sorted/MutableSortedBag.html#countByWith(org.eclipse.collections.api.block.function.Function2,P)">countByWith</a>, <a href="../../../../api/bag/sorted/MutableSortedBag.html#flatCollectWith(org.eclipse.collections.api.block.function.Function2,P)">flatCollectWith</a>, <a href="../../../../api/bag/sorted/MutableSortedBag.html#selectDuplicates()">selectDuplicates</a></code></div> |
| <div class="inheritedList"> |
| <h3>Methods inherited from interface org.eclipse.collections.api.ordered.<a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a></h3> |
| <a id="methods.inherited.from.class.org.eclipse.collections.api.ordered.OrderedIterable"> |
| <!-- --> |
| </a><code><a href="../../../../api/ordered/OrderedIterable.html#forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure)">forEachWithIndex</a>, <a href="../../../../api/ordered/OrderedIterable.html#getFirst()">getFirst</a>, <a href="../../../../api/ordered/OrderedIterable.html#getFirstOptional()">getFirstOptional</a>, <a href="../../../../api/ordered/OrderedIterable.html#getLast()">getLast</a>, <a href="../../../../api/ordered/OrderedIterable.html#getLastOptional()">getLastOptional</a></code></div> |
| <div class="inheritedList"> |
| <h3>Methods inherited from interface org.eclipse.collections.api.<a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a></h3> |
| <a id="methods.inherited.from.class.org.eclipse.collections.api.RichIterable"> |
| <!-- --> |
| </a><code><a href="../../../../api/RichIterable.html#allSatisfy(org.eclipse.collections.api.block.predicate.Predicate)">allSatisfy</a>, <a href="../../../../api/RichIterable.html#allSatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">allSatisfyWith</a>, <a href="../../../../api/RichIterable.html#anySatisfy(org.eclipse.collections.api.block.predicate.Predicate)">anySatisfy</a>, <a href="../../../../api/RichIterable.html#anySatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">anySatisfyWith</a>, <a href="../../../../api/RichIterable.html#appendString(java.lang.Appendable)">appendString</a>, <a href="../../../../api/RichIterable.html#appendString(java.lang.Appendable,java.lang.String)">appendString</a>, <a href="../../../../api/RichIterable.html#appendString(java.lang.Appendable,java.lang.String,java.lang.String,java.lang.String)">appendString</a>, <a href="../../../../api/RichIterable.html#asLazy()">asLazy</a>, <a href="../../../../api/RichIterable.html#chunk(int)">chunk</a>, <a href="../../../../api/RichIterable.html#collect(org.eclipse.collections.api.block.function.Function,R)">collect</a>, <a href="../../../../api/RichIterable.html#collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction,R)">collectBoolean</a>, <a href="../../../../api/RichIterable.html#collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction,R)">collectByte</a>, <a href="../../../../api/RichIterable.html#collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction,R)">collectChar</a>, <a href="../../../../api/RichIterable.html#collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction,R)">collectDouble</a>, <a href="../../../../api/RichIterable.html#collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction,R)">collectFloat</a>, <a href="../../../../api/RichIterable.html#collectIf(org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function,R)">collectIf</a>, <a href="../../../../api/RichIterable.html#collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction,R)">collectInt</a>, <a href="../../../../api/RichIterable.html#collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction,R)">collectLong</a>, <a href="../../../../api/RichIterable.html#collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction,R)">collectShort</a>, <a href="../../../../api/RichIterable.html#collectWith(org.eclipse.collections.api.block.function.Function2,P,R)">collectWith</a>, <a href="../../../../api/RichIterable.html#contains(java.lang.Object)">contains</a>, <a href="../../../../api/RichIterable.html#containsAll(java.util.Collection)">containsAll</a>, <a href="../../../../api/RichIterable.html#containsAllArguments(java.lang.Object...)">containsAllArguments</a>, <a href="../../../../api/RichIterable.html#containsAllIterable(java.lang.Iterable)">containsAllIterable</a>, <a href="../../../../api/RichIterable.html#containsBy(org.eclipse.collections.api.block.function.Function,V)">containsBy</a>, <a href="../../../../api/RichIterable.html#count(org.eclipse.collections.api.block.predicate.Predicate)">count</a>, <a href="../../../../api/RichIterable.html#countBy(org.eclipse.collections.api.block.function.Function,R)">countBy</a>, <a href="../../../../api/RichIterable.html#countByEach(org.eclipse.collections.api.block.function.Function,R)">countByEach</a>, <a href="../../../../api/RichIterable.html#countByWith(org.eclipse.collections.api.block.function.Function2,P,R)">countByWith</a>, <a href="../../../../api/RichIterable.html#countWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">countWith</a>, <a href="../../../../api/RichIterable.html#detect(org.eclipse.collections.api.block.predicate.Predicate)">detect</a>, <a href="../../../../api/RichIterable.html#detectIfNone(org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function0)">detectIfNone</a>, <a href="../../../../api/RichIterable.html#detectOptional(org.eclipse.collections.api.block.predicate.Predicate)">detectOptional</a>, <a href="../../../../api/RichIterable.html#detectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">detectWith</a>, <a href="../../../../api/RichIterable.html#detectWithIfNone(org.eclipse.collections.api.block.predicate.Predicate2,P,org.eclipse.collections.api.block.function.Function0)">detectWithIfNone</a>, <a href="../../../../api/RichIterable.html#detectWithOptional(org.eclipse.collections.api.block.predicate.Predicate2,P)">detectWithOptional</a>, <a href="../../../../api/RichIterable.html#each(org.eclipse.collections.api.block.procedure.Procedure)">each</a>, <a href="../../../../api/RichIterable.html#flatCollect(org.eclipse.collections.api.block.function.Function,R)">flatCollect</a>, <a href="../../../../api/RichIterable.html#flatCollectBoolean(org.eclipse.collections.api.block.function.Function,R)">flatCollectBoolean</a>, <a href="../../../../api/RichIterable.html#flatCollectByte(org.eclipse.collections.api.block.function.Function,R)">flatCollectByte</a>, <a href="../../../../api/RichIterable.html#flatCollectChar(org.eclipse.collections.api.block.function.Function,R)">flatCollectChar</a>, <a href="../../../../api/RichIterable.html#flatCollectDouble(org.eclipse.collections.api.block.function.Function,R)">flatCollectDouble</a>, <a href="../../../../api/RichIterable.html#flatCollectFloat(org.eclipse.collections.api.block.function.Function,R)">flatCollectFloat</a>, <a href="../../../../api/RichIterable.html#flatCollectInt(org.eclipse.collections.api.block.function.Function,R)">flatCollectInt</a>, <a href="../../../../api/RichIterable.html#flatCollectLong(org.eclipse.collections.api.block.function.Function,R)">flatCollectLong</a>, <a href="../../../../api/RichIterable.html#flatCollectShort(org.eclipse.collections.api.block.function.Function,R)">flatCollectShort</a>, <a href="../../../../api/RichIterable.html#flatCollectWith(org.eclipse.collections.api.block.function.Function2,P,R)">flatCollectWith</a>, <a href="../../../../api/RichIterable.html#forEach(org.eclipse.collections.api.block.procedure.Procedure)">forEach</a>, <a href="../../../../api/RichIterable.html#getAny()">getAny</a>, <a href="../../../../api/RichIterable.html#getOnly()">getOnly</a>, <a href="../../../../api/RichIterable.html#groupBy(org.eclipse.collections.api.block.function.Function,R)">groupBy</a>, <a href="../../../../api/RichIterable.html#groupByAndCollect(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)">groupByAndCollect</a>, <a href="../../../../api/RichIterable.html#groupByEach(org.eclipse.collections.api.block.function.Function,R)">groupByEach</a>, <a href="../../../../api/RichIterable.html#groupByUniqueKey(org.eclipse.collections.api.block.function.Function,R)">groupByUniqueKey</a>, <a href="../../../../api/RichIterable.html#injectInto(double,org.eclipse.collections.api.block.function.primitive.DoubleObjectToDoubleFunction)">injectInto</a>, <a href="../../../../api/RichIterable.html#injectInto(float,org.eclipse.collections.api.block.function.primitive.FloatObjectToFloatFunction)">injectInto</a>, <a href="../../../../api/RichIterable.html#injectInto(int,org.eclipse.collections.api.block.function.primitive.IntObjectToIntFunction)">injectInto</a>, <a href="../../../../api/RichIterable.html#injectInto(long,org.eclipse.collections.api.block.function.primitive.LongObjectToLongFunction)">injectInto</a>, <a href="../../../../api/RichIterable.html#injectInto(IV,org.eclipse.collections.api.block.function.Function2)">injectInto</a>, <a href="../../../../api/RichIterable.html#into(R)">into</a>, <a href="../../../../api/RichIterable.html#isEmpty()">isEmpty</a>, <a href="../../../../api/RichIterable.html#makeString()">makeString</a>, <a href="../../../../api/RichIterable.html#makeString(java.lang.String)">makeString</a>, <a href="../../../../api/RichIterable.html#makeString(java.lang.String,java.lang.String,java.lang.String)">makeString</a>, <a href="../../../../api/RichIterable.html#max(java.util.Comparator)">max</a>, <a href="../../../../api/RichIterable.html#maxBy(org.eclipse.collections.api.block.function.Function)">maxBy</a>, <a href="../../../../api/RichIterable.html#maxByOptional(org.eclipse.collections.api.block.function.Function)">maxByOptional</a>, <a href="../../../../api/RichIterable.html#maxOptional()">maxOptional</a>, <a href="../../../../api/RichIterable.html#maxOptional(java.util.Comparator)">maxOptional</a>, <a href="../../../../api/RichIterable.html#min(java.util.Comparator)">min</a>, <a href="../../../../api/RichIterable.html#minBy(org.eclipse.collections.api.block.function.Function)">minBy</a>, <a href="../../../../api/RichIterable.html#minByOptional(org.eclipse.collections.api.block.function.Function)">minByOptional</a>, <a href="../../../../api/RichIterable.html#minOptional()">minOptional</a>, <a href="../../../../api/RichIterable.html#minOptional(java.util.Comparator)">minOptional</a>, <a href="../../../../api/RichIterable.html#noneSatisfy(org.eclipse.collections.api.block.predicate.Predicate)">noneSatisfy</a>, <a href="../../../../api/RichIterable.html#noneSatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">noneSatisfyWith</a>, <a href="../../../../api/RichIterable.html#notEmpty()">notEmpty</a>, <a href="../../../../api/RichIterable.html#reduce(java.util.function.BinaryOperator)">reduce</a>, <a href="../../../../api/RichIterable.html#reject(org.eclipse.collections.api.block.predicate.Predicate,R)">reject</a>, <a href="../../../../api/RichIterable.html#rejectWith(org.eclipse.collections.api.block.predicate.Predicate2,P,R)">rejectWith</a>, <a href="../../../../api/RichIterable.html#select(org.eclipse.collections.api.block.predicate.Predicate,R)">select</a>, <a href="../../../../api/RichIterable.html#selectWith(org.eclipse.collections.api.block.predicate.Predicate2,P,R)">selectWith</a>, <a href="../../../../api/RichIterable.html#size()">size</a>, <a href="../../../../api/RichIterable.html#sumOfDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction)">sumOfDouble</a>, <a href="../../../../api/RichIterable.html#sumOfFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction)">sumOfFloat</a>, <a href="../../../../api/RichIterable.html#sumOfInt(org.eclipse.collections.api.block.function.primitive.IntFunction)">sumOfInt</a>, <a href="../../../../api/RichIterable.html#sumOfLong(org.eclipse.collections.api.block.function.primitive.LongFunction)">sumOfLong</a>, <a href="../../../../api/RichIterable.html#toArray()">toArray</a>, <a href="../../../../api/RichIterable.html#toArray(E%5B%5D)">toArray</a>, <a href="../../../../api/RichIterable.html#toBag()">toBag</a>, <a href="../../../../api/RichIterable.html#toBiMap(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">toBiMap</a>, <a href="../../../../api/RichIterable.html#toList()">toList</a>, <a href="../../../../api/RichIterable.html#toMap(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">toMap</a>, <a href="../../../../api/RichIterable.html#toMap(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)">toMap</a>, <a href="../../../../api/RichIterable.html#toSet()">toSet</a>, <a href="../../../../api/RichIterable.html#toSortedBag()">toSortedBag</a>, <a href="../../../../api/RichIterable.html#toSortedBag(java.util.Comparator)">toSortedBag</a>, <a href="../../../../api/RichIterable.html#toSortedBagBy(org.eclipse.collections.api.block.function.Function)">toSortedBagBy</a>, <a href="../../../../api/RichIterable.html#toSortedList()">toSortedList</a>, <a href="../../../../api/RichIterable.html#toSortedList(java.util.Comparator)">toSortedList</a>, <a href="../../../../api/RichIterable.html#toSortedListBy(org.eclipse.collections.api.block.function.Function)">toSortedListBy</a>, <a href="../../../../api/RichIterable.html#toSortedMap(java.util.Comparator,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">toSortedMap</a>, <a href="../../../../api/RichIterable.html#toSortedMap(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">toSortedMap</a>, <a href="../../../../api/RichIterable.html#toSortedMapBy(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">toSortedMapBy</a>, <a href="../../../../api/RichIterable.html#toSortedSet()">toSortedSet</a>, <a href="../../../../api/RichIterable.html#toSortedSet(java.util.Comparator)">toSortedSet</a>, <a href="../../../../api/RichIterable.html#toSortedSetBy(org.eclipse.collections.api.block.function.Function)">toSortedSetBy</a>, <a href="../../../../api/RichIterable.html#toString()">toString</a></code></div> |
| <div class="inheritedList"> |
| <h3>Methods inherited from interface org.eclipse.collections.api.bag.sorted.<a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a></h3> |
| <a id="methods.inherited.from.class.org.eclipse.collections.api.bag.sorted.SortedBag"> |
| <!-- --> |
| </a><code><a href="../../../../api/bag/sorted/SortedBag.html#max()">max</a>, <a href="../../../../api/bag/sorted/SortedBag.html#min()">min</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="of(org.eclipse.collections.api.bag.sorted.MutableSortedBag)"> |
| <!-- --> |
| </a><a id="of(S)">of</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><E,​ |
| S extends <a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><E>></span> |
| <span class="returnType"><a href="UnmodifiableSortedBag.html" title="class in org.eclipse.collections.impl.bag.sorted.mutable">UnmodifiableSortedBag</a><E></span> <span class="memberName">of</span>​(<span class="arguments">S bag)</span></div> |
| <div class="block">This method will take a MutableSortedBag and wrap it directly in a UnmodifiableSortedBag.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="asUnmodifiable()">asUnmodifiable</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">asUnmodifiable</span>()</div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#asUnmodifiable()">MutableCollection</a></code></span></div> |
| <div class="block">Returns an unmodifiable view of this collection. This is the equivalent of using |
| <code>Collections.unmodifiableCollection(this)</code> with a return type that supports the full |
| iteration protocols available on <code>MutableCollection</code>. Methods which would |
| mutate the underlying collection will throw UnsupportedOperationExceptions.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#asUnmodifiable()">asUnmodifiable</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#asUnmodifiable()">asUnmodifiable</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#asUnmodifiable()">asUnmodifiable</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>an unmodifiable view of this collection.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collections.html?is-external=true#unmodifiableCollection(java.util.Collection)" title="class or interface in java.util" class="externalLink"><code>Collections.unmodifiableCollection(Collection)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="asSynchronized()">asSynchronized</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">asSynchronized</span>()</div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#asSynchronized()">MutableCollection</a></code></span></div> |
| <div class="block">Returns a synchronized wrapper backed by this collection. This is the equivalent of using |
| <code>Collections.synchronizedCollection(this)</code> only with a return type that supports the full |
| iteration protocols available on <code>MutableCollection</code>. |
| |
| The preferred way of iterating over a synchronized collection is to use the internal iteration |
| methods which are properly synchronized internally. |
| |
| <pre> |
| MutableCollection synchedCollection = collection.asSynchronized(); |
| ... |
| synchedCollection.forEach(each -> ... ); |
| synchedCollection.select(each -> ... ); |
| synchedCollection.collect(each -> ... ); |
| </pre> |
| |
| If you want to iterate using an imperative style, you must protect external iterators using |
| a synchronized block. This includes explicit iterators as well as JDK 5 style for loops. |
| <p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#asSynchronized()">asSynchronized</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#asSynchronized()">asSynchronized</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#asSynchronized()">asSynchronized</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a synchronized view of this collection.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collections.html?is-external=true#synchronizedCollection(java.util.Collection)" title="class or interface in java.util" class="externalLink"><code>Collections.synchronizedCollection(Collection)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toImmutable()">toImmutable</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/bag/sorted/ImmutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">ImmutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">toImmutable</span>()</div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#toImmutable()">MutableCollection</a></code></span></div> |
| <div class="block">Converts this <code>MutableCollection</code> to an <code>ImmutableCollection</code>.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#toImmutable()">toImmutable</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#toImmutable()">toImmutable</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#toImmutable()">toImmutable</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#toImmutable()">toImmutable</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="clone()">clone</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="UnmodifiableSortedBag.html" title="class in org.eclipse.collections.impl.bag.sorted.mutable">UnmodifiableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">clone</span>()</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#clone()">clone</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="equals(java.lang.Object)">equals</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">boolean</span> <span class="memberName">equals</span>​(<span class="arguments"><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> obj)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/bag/Bag.html#equals(java.lang.Object)">Bag</a></code></span></div> |
| <div class="block">Two bags <code>b1</code> and <code>b2</code> are equal if <code>m1.toMapOfItemToCount().equals(m2.toMapOfItemToCount())</code>.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#equals(java.lang.Object)">equals</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.util" class="externalLink">equals</a></code> in interface <code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><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></code> in class <code><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></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.util" class="externalLink"><code>Map.equals(Object)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="hashCode()">hashCode</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">int</span> <span class="memberName">hashCode</span>()</div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/bag/Bag.html#hashCode()">Bag</a></code></span></div> |
| <div class="block">Returns the hash code for this Bag, defined as <em>this.<a href="../../../../api/bag/Bag.html#toMapOfItemToCount()"><code>Bag.toMapOfItemToCount()</code></a>.hashCode()</em>.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#hashCode()">hashCode</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#hashCode()" title="class or interface in java.util" class="externalLink">hashCode</a></code> in interface <code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><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></code> in class <code><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></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true#hashCode()" title="class or interface in java.util" class="externalLink"><code>Map.hashCode()</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="newEmpty()">newEmpty</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">newEmpty</span>()</div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#newEmpty()">MutableCollection</a></code></span></div> |
| <div class="block">Creates a new empty mutable version of the same collection type. For example, if this instance is a FastList, |
| this method will return a new empty FastList. If the class of this instance is immutable or fixed size (i.e. |
| SingletonList) then a mutable alternative to the class will be provided.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#newEmpty()">newEmpty</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#newEmpty()">newEmpty</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#newEmpty()">newEmpty</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="addOccurrences(java.lang.Object,int)"> |
| <!-- --> |
| </a><a id="addOccurrences(T,int)">addOccurrences</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">int</span> <span class="memberName">addOccurrences</span>​(<span class="arguments"><a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a> item, |
| int occurrences)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/bag/MutableBagIterable.html#addOccurrences(T,int)">MutableBagIterable</a></code></span></div> |
| <div class="block">Add number of <code>occurrences</code> for an <code>item</code>. If the <code>item</code> does not exist, then the <code>item</code> is added to the bag. |
| |
| <p> |
| For Example: |
| <pre> |
| MutableBagIterable<String> names = Bags.mutable.of("A", "B", "B"); |
| Assert.assertEquals(4, names.<b>addOccurrences</b>("A", 3)); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#addOccurrences(T,int)">addOccurrences</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>updated number of occurrences.</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="removeOccurrences(java.lang.Object,int)">removeOccurrences</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">boolean</span> <span class="memberName">removeOccurrences</span>​(<span class="arguments"><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> item, |
| int occurrences)</span></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#removeOccurrences(java.lang.Object,int)">removeOccurrences</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="setOccurrences(java.lang.Object,int)"> |
| <!-- --> |
| </a><a id="setOccurrences(T,int)">setOccurrences</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">boolean</span> <span class="memberName">setOccurrences</span>​(<span class="arguments"><a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a> item, |
| int occurrences)</span></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#setOccurrences(T,int)">setOccurrences</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="tap(org.eclipse.collections.api.block.procedure.Procedure)">tap</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">tap</span>​(<span class="arguments"><a href="../../../../api/block/procedure/Procedure.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> procedure)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/RichIterable.html#tap(org.eclipse.collections.api.block.procedure.Procedure)">RichIterable</a></code></span></div> |
| <div class="block">Executes the Procedure for each element in the iterable and returns <code>this</code>. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| RichIterable<Person> tapped = |
| people.<b>tap</b>(person -> LOGGER.info(person.getName())); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| RichIterable<Person> tapped = |
| people.<b>tap</b>(new Procedure<Person>() |
| { |
| public void value(Person person) |
| { |
| LOGGER.info(person.getName()); |
| } |
| }); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#tap(org.eclipse.collections.api.block.procedure.Procedure)">tap</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#tap(org.eclipse.collections.api.block.procedure.Procedure)">tap</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#tap(org.eclipse.collections.api.block.procedure.Procedure)">tap</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#tap(org.eclipse.collections.api.block.procedure.Procedure)">tap</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#tap(org.eclipse.collections.api.block.procedure.Procedure)">tap</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#tap(org.eclipse.collections.api.block.procedure.Procedure)">tap</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#tap(org.eclipse.collections.api.block.procedure.Procedure)">tap</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#tap(org.eclipse.collections.api.block.procedure.Procedure)">tap</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/SortedIterable.html#tap(org.eclipse.collections.api.block.procedure.Procedure)">tap</a></code> in interface <code><a href="../../../../api/ordered/SortedIterable.html" title="interface in org.eclipse.collections.api.ordered">SortedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#tap(org.eclipse.collections.api.block.procedure.Procedure)">tap</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../api/RichIterable.html#each(org.eclipse.collections.api.block.procedure.Procedure)"><code>RichIterable.each(Procedure)</code></a>, |
| <a href="../../../../api/RichIterable.html#forEach(org.eclipse.collections.api.block.procedure.Procedure)"><code>RichIterable.forEach(Procedure)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="select(org.eclipse.collections.api.block.predicate.Predicate)">select</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">select</span>​(<span class="arguments"><a href="../../../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> predicate)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#select(org.eclipse.collections.api.block.predicate.Predicate)">MutableCollection</a></code></span></div> |
| <div class="block">Returns a MutableCollection with all elements that evaluate to true for the specified predicate. |
| |
| <pre> |
| MutableCollection<Integer> livesInLondon = |
| people.select(person -> person.getAddress().getCity().equals("London")); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#select(org.eclipse.collections.api.block.predicate.Predicate)">select</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#select(org.eclipse.collections.api.block.predicate.Predicate)">select</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#select(org.eclipse.collections.api.block.predicate.Predicate)">select</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#select(org.eclipse.collections.api.block.predicate.Predicate)">select</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#select(org.eclipse.collections.api.block.predicate.Predicate)">select</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#select(org.eclipse.collections.api.block.predicate.Predicate)">select</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#select(org.eclipse.collections.api.block.predicate.Predicate)">select</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#select(org.eclipse.collections.api.block.predicate.Predicate)">select</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/SortedIterable.html#select(org.eclipse.collections.api.block.predicate.Predicate)">select</a></code> in interface <code><a href="../../../../api/ordered/SortedIterable.html" title="interface in org.eclipse.collections.api.ordered">SortedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#select(org.eclipse.collections.api.block.predicate.Predicate)">select</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="selectWith(org.eclipse.collections.api.block.predicate.Predicate2,java.lang.Object)"> |
| <!-- --> |
| </a><a id="selectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">selectWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="typeParameters"><P></span> <span class="returnType"><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">selectWith</span>​(<span class="arguments"><a href="../../../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? super P> predicate, |
| P parameter)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#selectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">MutableCollection</a></code></span></div> |
| <div class="block">Returns a MutableCollection with all elements that evaluate to true for the specified predicate2 and parameter. |
| |
| <pre> |
| MutableCollection<Integer> fives = |
| integers.selectWith(Predicates2.equal(), Integer.valueOf(5)); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#selectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">selectWith</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#selectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">selectWith</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#selectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">selectWith</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#selectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">selectWith</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#selectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">selectWith</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#selectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">selectWith</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#selectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">selectWith</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#selectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">selectWith</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/SortedIterable.html#selectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">selectWith</a></code> in interface <code><a href="../../../../api/ordered/SortedIterable.html" title="interface in org.eclipse.collections.api.ordered">SortedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#selectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">selectWith</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>predicate</code> - a <a href="../../../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate"><code>Predicate2</code></a> to use as the select criteria</dd> |
| <dd><code>parameter</code> - a parameter to pass in for evaluation of the second argument <code>P</code> in <code>predicate</code></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../api/RichIterable.html#select(org.eclipse.collections.api.block.predicate.Predicate)"><code>RichIterable.select(Predicate)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="reject(org.eclipse.collections.api.block.predicate.Predicate)">reject</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">reject</span>​(<span class="arguments"><a href="../../../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> predicate)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#reject(org.eclipse.collections.api.block.predicate.Predicate)">MutableCollection</a></code></span></div> |
| <div class="block">Returns a MutableCollection with all elements that evaluate to false for the specified predicate. |
| |
| <pre> |
| MutableCollection<Person> notSmiths = |
| people.reject(person -> person.person.getLastName().equals("Smith")); |
| </pre> |
| Using the <code>Predicates</code> factory: |
| |
| <pre> |
| MutableCollection<Person> notSmiths = people.reject(Predicates.attributeEqual("lastName", "Smith")); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#reject(org.eclipse.collections.api.block.predicate.Predicate)">reject</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#reject(org.eclipse.collections.api.block.predicate.Predicate)">reject</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#reject(org.eclipse.collections.api.block.predicate.Predicate)">reject</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#reject(org.eclipse.collections.api.block.predicate.Predicate)">reject</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#reject(org.eclipse.collections.api.block.predicate.Predicate)">reject</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#reject(org.eclipse.collections.api.block.predicate.Predicate)">reject</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#reject(org.eclipse.collections.api.block.predicate.Predicate)">reject</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#reject(org.eclipse.collections.api.block.predicate.Predicate)">reject</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/SortedIterable.html#reject(org.eclipse.collections.api.block.predicate.Predicate)">reject</a></code> in interface <code><a href="../../../../api/ordered/SortedIterable.html" title="interface in org.eclipse.collections.api.ordered">SortedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#reject(org.eclipse.collections.api.block.predicate.Predicate)">reject</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>predicate</code> - a <a href="../../../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate"><code>Predicate</code></a> to use as the reject criteria</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a RichIterable that contains elements that cause <a href="../../../../api/block/predicate/Predicate.html#accept(T)"><code>Predicate.accept(Object)</code></a> method to evaluate to false</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="rejectWith(org.eclipse.collections.api.block.predicate.Predicate2,java.lang.Object)"> |
| <!-- --> |
| </a><a id="rejectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">rejectWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="typeParameters"><P></span> <span class="returnType"><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">rejectWith</span>​(<span class="arguments"><a href="../../../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? super P> predicate, |
| P parameter)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#rejectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">MutableCollection</a></code></span></div> |
| <div class="block">Returns a MutableCollection with all elements that evaluate to false for the specified predicate2 and parameter. |
| |
| <pre>e.g. |
| MutableCollection<Integer> selected = |
| integers.rejectWith(Predicates2.equal(), Integer.valueOf(5)); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#rejectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">rejectWith</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#rejectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">rejectWith</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#rejectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">rejectWith</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#rejectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">rejectWith</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#rejectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">rejectWith</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#rejectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">rejectWith</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#rejectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">rejectWith</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#rejectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">rejectWith</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/SortedIterable.html#rejectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">rejectWith</a></code> in interface <code><a href="../../../../api/ordered/SortedIterable.html" title="interface in org.eclipse.collections.api.ordered">SortedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#rejectWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">rejectWith</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>predicate</code> - a <a href="../../../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate"><code>Predicate2</code></a> to use as the select criteria</dd> |
| <dd><code>parameter</code> - a parameter to pass in for evaluation of the second argument <code>P</code> in <code>predicate</code></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../api/RichIterable.html#select(org.eclipse.collections.api.block.predicate.Predicate)"><code>RichIterable.select(Predicate)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="partition(org.eclipse.collections.api.block.predicate.Predicate)">partition</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/partition/bag/sorted/PartitionMutableSortedBag.html" title="interface in org.eclipse.collections.api.partition.bag.sorted">PartitionMutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">partition</span>​(<span class="arguments"><a href="../../../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> predicate)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#partition(org.eclipse.collections.api.block.predicate.Predicate)">MutableCollection</a></code></span></div> |
| <div class="block">Filters a collection into a PartitionedIterable based on the evaluation of the predicate. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| PartitionIterable<Person> newYorkersAndNonNewYorkers = |
| people.<b>partition</b>(person -> person.getAddress().getState().getName().equals("New York")); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| PartitionIterable<Person> newYorkersAndNonNewYorkers = |
| people.<b>partition</b>(new Predicate<Person>() |
| { |
| public boolean accept(Person person) |
| { |
| return person.getAddress().getState().getName().equals("New York"); |
| } |
| }); |
| </pre> |
| Co-variant example for MutableCollection: |
| <pre> |
| PartitionMutableCollection<Person> newYorkersAndNonNewYorkers = |
| people.partition(person -> person.getAddress().getState().getName().equals("New York")); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#partition(org.eclipse.collections.api.block.predicate.Predicate)">partition</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#partition(org.eclipse.collections.api.block.predicate.Predicate)">partition</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#partition(org.eclipse.collections.api.block.predicate.Predicate)">partition</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#partition(org.eclipse.collections.api.block.predicate.Predicate)">partition</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#partition(org.eclipse.collections.api.block.predicate.Predicate)">partition</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#partition(org.eclipse.collections.api.block.predicate.Predicate)">partition</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#partition(org.eclipse.collections.api.block.predicate.Predicate)">partition</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#partition(org.eclipse.collections.api.block.predicate.Predicate)">partition</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/SortedIterable.html#partition(org.eclipse.collections.api.block.predicate.Predicate)">partition</a></code> in interface <code><a href="../../../../api/ordered/SortedIterable.html" title="interface in org.eclipse.collections.api.ordered">SortedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#partition(org.eclipse.collections.api.block.predicate.Predicate)">partition</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="partitionWith(org.eclipse.collections.api.block.predicate.Predicate2,java.lang.Object)"> |
| <!-- --> |
| </a><a id="partitionWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">partitionWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="typeParameters"><P></span> <span class="returnType"><a href="../../../../api/partition/bag/sorted/PartitionMutableSortedBag.html" title="interface in org.eclipse.collections.api.partition.bag.sorted">PartitionMutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">partitionWith</span>​(<span class="arguments"><a href="../../../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? super P> predicate, |
| P parameter)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#partitionWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">MutableCollection</a></code></span></div> |
| <div class="block">Filters a collection into a PartitionIterable based on the evaluation of the predicate. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| PartitionIterable<Person> newYorkersAndNonNewYorkers = |
| people.<b>partitionWith</b>((Person person, String state) -> person.getAddress().getState().getName().equals(state), "New York"); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| PartitionIterable<Person> newYorkersAndNonNewYorkers = |
| people.<b>partitionWith</b>(new Predicate2<Person, String>() |
| { |
| public boolean accept(Person person, String state) |
| { |
| return person.getAddress().getState().getName().equals(state); |
| } |
| }, "New York"); |
| </pre> |
| Co-variant example for MutableCollection: |
| <pre> |
| PartitionMutableCollection<Person> newYorkersAndNonNewYorkers = |
| people.partitionWith((Person person, String state) -> person.getAddress().getState().getName().equals(state), "New York"); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#partitionWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">partitionWith</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#partitionWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">partitionWith</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#partitionWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">partitionWith</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#partitionWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">partitionWith</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#partitionWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">partitionWith</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#partitionWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">partitionWith</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#partitionWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">partitionWith</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#partitionWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">partitionWith</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#partitionWith(org.eclipse.collections.api.block.predicate.Predicate2,P)">partitionWith</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="partitionWhile(org.eclipse.collections.api.block.predicate.Predicate)">partitionWhile</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/partition/bag/sorted/PartitionMutableSortedBag.html" title="interface in org.eclipse.collections.api.partition.bag.sorted">PartitionMutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">partitionWhile</span>​(<span class="arguments"><a href="../../../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> predicate)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/ordered/SortedIterable.html#partitionWhile(org.eclipse.collections.api.block.predicate.Predicate)">SortedIterable</a></code></span></div> |
| <div class="block">Returns a Partition of the initial elements that satisfy the Predicate and the remaining elements. Short circuits at the first element which does |
| satisfy the Predicate.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#partitionWhile(org.eclipse.collections.api.block.predicate.Predicate)">partitionWhile</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#partitionWhile(org.eclipse.collections.api.block.predicate.Predicate)">partitionWhile</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#partitionWhile(org.eclipse.collections.api.block.predicate.Predicate)">partitionWhile</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#partitionWhile(org.eclipse.collections.api.block.predicate.Predicate)">partitionWhile</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/SortedIterable.html#partitionWhile(org.eclipse.collections.api.block.predicate.Predicate)">partitionWhile</a></code> in interface <code><a href="../../../../api/ordered/SortedIterable.html" title="interface in org.eclipse.collections.api.ordered">SortedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="sizeDistinct()">sizeDistinct</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">int</span> <span class="memberName">sizeDistinct</span>()</div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/bag/Bag.html#sizeDistinct()">Bag</a></code></span></div> |
| <div class="block">The size of the Bag when counting only distinct elements.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#sizeDistinct()">sizeDistinct</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="occurrencesOf(java.lang.Object)">occurrencesOf</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">int</span> <span class="memberName">occurrencesOf</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> item)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/bag/Bag.html#occurrencesOf(java.lang.Object)">Bag</a></code></span></div> |
| <div class="block">The occurrences of a distinct item in the bag.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#occurrencesOf(java.lang.Object)">occurrencesOf</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure)">forEachWithOccurrences</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">forEachWithOccurrences</span>​(<span class="arguments"><a href="../../../../api/block/procedure/primitive/ObjectIntProcedure.html" title="interface in org.eclipse.collections.api.block.procedure.primitive">ObjectIntProcedure</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> procedure)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/bag/Bag.html#forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure)">Bag</a></code></span></div> |
| <div class="block">For each distinct item, with the number of occurrences, execute the specified procedure.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure)">forEachWithOccurrences</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectWithOccurrences(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction)">collectWithOccurrences</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="typeParameters"><V></span> <span class="returnType"><a href="../../../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><V></span> <span class="memberName">collectWithOccurrences</span>​(<span class="arguments"><a href="../../../../api/block/function/primitive/ObjectIntToObjectFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ObjectIntToObjectFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? extends V> function)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/bag/Bag.html#collectWithOccurrences(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction)">Bag</a></code></span></div> |
| <div class="block">Iterates over the unique elements and their occurrences and collects the results of applying the specified function.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#collectWithOccurrences(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction)">collectWithOccurrences</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#collectWithOccurrences(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction)">collectWithOccurrences</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#collectWithOccurrences(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction)">collectWithOccurrences</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#collectWithOccurrences(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction)">collectWithOccurrences</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectWithOccurrences(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction,java.util.Collection)"> |
| <!-- --> |
| </a><a id="collectWithOccurrences(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction,R)">collectWithOccurrences</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="typeParameters"><V,​ |
| R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><V>></span> <span class="returnType">R</span> <span class="memberName">collectWithOccurrences</span>​(<span class="arguments"><a href="../../../../api/block/function/primitive/ObjectIntToObjectFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ObjectIntToObjectFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? extends V> function, |
| R target)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/bag/Bag.html#collectWithOccurrences(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction,R)">Bag</a></code></span></div> |
| <div class="block">Iterates over the unique elements and their occurrences and collects the results of applying the |
| specified function into the target collection.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#collectWithOccurrences(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction,R)">collectWithOccurrences</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>9.1.</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toMapOfItemToCount()">toMapOfItemToCount</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/map/sorted/MutableSortedMap.html" title="interface in org.eclipse.collections.api.map.sorted">MutableSortedMap</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang" class="externalLink">Integer</a>></span> <span class="memberName">toMapOfItemToCount</span>()</div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/bag/Bag.html#toMapOfItemToCount()">Bag</a></code></span></div> |
| <div class="block">Converts the Bag to a Map of the Item type to its count as an Integer.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#toMapOfItemToCount()">toMapOfItemToCount</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#toMapOfItemToCount()">toMapOfItemToCount</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#toMapOfItemToCount()">toMapOfItemToCount</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#toMapOfItemToCount()">toMapOfItemToCount</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toStringOfItemToCount()">toStringOfItemToCount</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a></span> <span class="memberName">toStringOfItemToCount</span>()</div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/bag/Bag.html#toStringOfItemToCount()">Bag</a></code></span></div> |
| <div class="block">Returns a string representation of this bag. The string representation consists of a list of element-count mappings. |
| |
| <pre> |
| Assert.assertEquals("{1=1, 2=2, 3=3}", Bags.mutable.with(1, 2, 2, 3, 3, 3).toStringOfItemToCount()); |
| </pre> |
| This string representation is similar to <a href="https://docs.oracle.com/javase/8/docs/api/java/util/AbstractMap.html?is-external=true#toString()" title="class or interface in java.util" class="externalLink"><code>AbstractMap.toString()</code></a>, not <a href="../../../../api/RichIterable.html#toString()"><code>RichIterable.toString()</code></a>, |
| whereas the <code>toString()</code> implementation for a Bag is consistent with <a href="../../../../api/RichIterable.html#toString()"><code>RichIterable.toString()</code></a>.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#toStringOfItemToCount()">toStringOfItemToCount</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a string representation of this bag</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="selectByOccurrences(org.eclipse.collections.api.block.predicate.primitive.IntPredicate)">selectByOccurrences</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">selectByOccurrences</span>​(<span class="arguments"><a href="../../../../api/block/predicate/primitive/IntPredicate.html" title="interface in org.eclipse.collections.api.block.predicate.primitive">IntPredicate</a> predicate)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/bag/Bag.html#selectByOccurrences(org.eclipse.collections.api.block.predicate.primitive.IntPredicate)">Bag</a></code></span></div> |
| <div class="block">Returns all elements of the bag that have a number of occurrences that satisfy the predicate.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#selectByOccurrences(org.eclipse.collections.api.block.predicate.primitive.IntPredicate)">selectByOccurrences</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#selectByOccurrences(org.eclipse.collections.api.block.predicate.primitive.IntPredicate)">selectByOccurrences</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#selectByOccurrences(org.eclipse.collections.api.block.predicate.primitive.IntPredicate)">selectByOccurrences</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#selectByOccurrences(org.eclipse.collections.api.block.predicate.primitive.IntPredicate)">selectByOccurrences</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="topOccurrences(int)">topOccurrences</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><<a href="../../../../api/tuple/primitive/ObjectIntPair.html" title="interface in org.eclipse.collections.api.tuple.primitive">ObjectIntPair</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>>></span> <span class="memberName">topOccurrences</span>​(<span class="arguments">int count)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/bag/Bag.html#topOccurrences(int)">Bag</a></code></span></div> |
| <div class="block">Returns the <code>count</code> most frequently occurring items. |
| |
| In the event of a tie, all of the items with the number of occurrences that match the occurrences of the last |
| item will be returned.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#topOccurrences(int)">topOccurrences</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#topOccurrences(int)">topOccurrences</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="bottomOccurrences(int)">bottomOccurrences</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><<a href="../../../../api/tuple/primitive/ObjectIntPair.html" title="interface in org.eclipse.collections.api.tuple.primitive">ObjectIntPair</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>>></span> <span class="memberName">bottomOccurrences</span>​(<span class="arguments">int count)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/bag/Bag.html#bottomOccurrences(int)">Bag</a></code></span></div> |
| <div class="block">Returns the <code>count</code> least frequently occurring items. |
| |
| In the event of a tie, all of the items with the number of occurrences that match the occurrences of the last |
| item will be returned.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#bottomOccurrences(int)">bottomOccurrences</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#bottomOccurrences(int)">bottomOccurrences</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="selectInstancesOf(java.lang.Class)">selectInstancesOf</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="typeParameters"><S></span> <span class="returnType"><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><S></span> <span class="memberName">selectInstancesOf</span>​(<span class="arguments"><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><S> clazz)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#selectInstancesOf(java.lang.Class)">MutableCollection</a></code></span></div> |
| <div class="block">Returns all elements of the source collection that are instances of the Class <code>clazz</code>. |
| |
| <pre> |
| RichIterable<Integer> integers = |
| List.mutable.with(new Integer(0), new Long(0L), new Double(0.0)).selectInstancesOf(Integer.class); |
| </pre> |
| Co-variant example for MutableCollection: |
| <pre> |
| MutableCollection<Integer> integers = |
| List.mutable.with(new Integer(0), new Long(0L), new Double(0.0)).selectInstancesOf(Integer.class); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#selectInstancesOf(java.lang.Class)">selectInstancesOf</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#selectInstancesOf(java.lang.Class)">selectInstancesOf</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#selectInstancesOf(java.lang.Class)">selectInstancesOf</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#selectInstancesOf(java.lang.Class)">selectInstancesOf</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#selectInstancesOf(java.lang.Class)">selectInstancesOf</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#selectInstancesOf(java.lang.Class)">selectInstancesOf</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#selectInstancesOf(java.lang.Class)">selectInstancesOf</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#selectInstancesOf(java.lang.Class)">selectInstancesOf</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/SortedIterable.html#selectInstancesOf(java.lang.Class)">selectInstancesOf</a></code> in interface <code><a href="../../../../api/ordered/SortedIterable.html" title="interface in org.eclipse.collections.api.ordered">SortedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#selectInstancesOf(java.lang.Class)">selectInstancesOf</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collect(org.eclipse.collections.api.block.function.Function)">collect</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="typeParameters"><V></span> <span class="returnType"><a href="../../../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><V></span> <span class="memberName">collect</span>​(<span class="arguments"><a href="../../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? extends V> function)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#collect(org.eclipse.collections.api.block.function.Function)">MutableCollection</a></code></span></div> |
| <div class="block">Returns a new MutableCollection with the results of applying the specified function to each element of the source |
| collection. |
| |
| <pre> |
| MutableCollection<String> names = |
| people.collect(person -> person.getFirstName() + " " + person.getLastName()); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#collect(org.eclipse.collections.api.block.function.Function)">collect</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#collect(org.eclipse.collections.api.block.function.Function)">collect</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#collect(org.eclipse.collections.api.block.function.Function)">collect</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#collect(org.eclipse.collections.api.block.function.Function)">collect</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#collect(org.eclipse.collections.api.block.function.Function)">collect</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#collect(org.eclipse.collections.api.block.function.Function)">collect</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collect(org.eclipse.collections.api.block.function.Function)">collect</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectWithIndex(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction)">collectWithIndex</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="typeParameters"><V></span> <span class="returnType"><a href="../../../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><V></span> <span class="memberName">collectWithIndex</span>​(<span class="arguments"><a href="../../../../api/block/function/primitive/ObjectIntToObjectFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ObjectIntToObjectFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? extends V> function)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/ordered/OrderedIterable.html#collectWithIndex(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction)">OrderedIterable</a></code></span></div> |
| <div class="block">Returns a new OrderedIterable using results obtained by applying the specified function to each element |
| and its corresponding index.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#collectWithIndex(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction)">collectWithIndex</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#collectWithIndex(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction)">collectWithIndex</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#collectWithIndex(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction)">collectWithIndex</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#collectWithIndex(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction)">collectWithIndex</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>9.1.</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectWithIndex(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction,java.util.Collection)"> |
| <!-- --> |
| </a><a id="collectWithIndex(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction,R)">collectWithIndex</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="typeParameters"><V,​ |
| R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><V>></span> <span class="returnType">R</span> <span class="memberName">collectWithIndex</span>​(<span class="arguments"><a href="../../../../api/block/function/primitive/ObjectIntToObjectFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ObjectIntToObjectFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? extends V> function, |
| R target)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/ordered/OrderedIterable.html#collectWithIndex(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction,R)">OrderedIterable</a></code></span></div> |
| <div class="block">Adds elements to the target Collection using results obtained by applying the specified function to each element |
| and its corresponding index.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#collectWithIndex(org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction,R)">collectWithIndex</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>9.1.</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction)">collectBoolean</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/list/primitive/MutableBooleanList.html" title="interface in org.eclipse.collections.api.list.primitive">MutableBooleanList</a></span> <span class="memberName">collectBoolean</span>​(<span class="arguments"><a href="../../../../api/block/function/primitive/BooleanFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">BooleanFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> booleanFunction)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction)">MutableCollection</a></code></span></div> |
| <div class="block">Returns a new primitive <code>boolean</code> iterable with the results of applying the specified function on each element |
| of the source collection. This method is also commonly called transform or map. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| BooleanIterable licenses = |
| people.collectBoolean(person -> person.hasDrivingLicense()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| BooleanIterable licenses = |
| people.collectBoolean(new BooleanFunction<Person>() |
| { |
| public boolean booleanValueOf(Person person) |
| { |
| return person.hasDrivingLicense(); |
| } |
| }); |
| </pre> |
| Co-variant example for MutableCollection: |
| <pre> |
| MutableBooleanCollection licenses = |
| people.collectBoolean(person -> person.hasDrivingLicense()); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction)">collectBoolean</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction)">collectBoolean</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction)">collectBoolean</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction)">collectBoolean</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction)">collectBoolean</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction)">collectBoolean</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction)">collectBoolean</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction)">collectByte</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/list/primitive/MutableByteList.html" title="interface in org.eclipse.collections.api.list.primitive">MutableByteList</a></span> <span class="memberName">collectByte</span>​(<span class="arguments"><a href="../../../../api/block/function/primitive/ByteFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ByteFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> byteFunction)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction)">MutableCollection</a></code></span></div> |
| <div class="block">Returns a new primitive <code>byte</code> iterable with the results of applying the specified function on each element |
| of the source collection. This method is also commonly called transform or map. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| ByteIterable bytes = |
| people.collectByte(person -> person.getCode()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| ByteIterable bytes = |
| people.collectByte(new ByteFunction<Person>() |
| { |
| public byte byteValueOf(Person person) |
| { |
| return person.getCode(); |
| } |
| }); |
| </pre> |
| Co-variant example for MutableCollection: |
| <pre> |
| MutableByteCollection bytes = |
| people.collectByte(person -> person.getCode()); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction)">collectByte</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction)">collectByte</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction)">collectByte</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction)">collectByte</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction)">collectByte</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction)">collectByte</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction)">collectByte</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction)">collectChar</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/list/primitive/MutableCharList.html" title="interface in org.eclipse.collections.api.list.primitive">MutableCharList</a></span> <span class="memberName">collectChar</span>​(<span class="arguments"><a href="../../../../api/block/function/primitive/CharFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">CharFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> charFunction)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction)">MutableCollection</a></code></span></div> |
| <div class="block">Returns a new primitive <code>char</code> iterable with the results of applying the specified function on each element |
| of the source collection. This method is also commonly called transform or map. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| CharIterable chars = |
| people.collectChar(person -> person.getMiddleInitial()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| CharIterable chars = |
| people.collectChar(new CharFunction<Person>() |
| { |
| public char charValueOf(Person person) |
| { |
| return person.getMiddleInitial(); |
| } |
| }); |
| </pre> |
| Co-variant example for MutableCollection: |
| <pre> |
| MutableCharCollection chars = |
| people.collectChar(person -> person.getMiddleInitial()); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction)">collectChar</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction)">collectChar</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction)">collectChar</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction)">collectChar</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction)">collectChar</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction)">collectChar</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction)">collectChar</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction)">collectDouble</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/list/primitive/MutableDoubleList.html" title="interface in org.eclipse.collections.api.list.primitive">MutableDoubleList</a></span> <span class="memberName">collectDouble</span>​(<span class="arguments"><a href="../../../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> doubleFunction)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction)">MutableCollection</a></code></span></div> |
| <div class="block">Returns a new primitive <code>double</code> iterable with the results of applying the specified function on each element |
| of the source collection. This method is also commonly called transform or map. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| DoubleIterable doubles = |
| people.collectDouble(person -> person.getMilesFromNorthPole()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| DoubleIterable doubles = |
| people.collectDouble(new DoubleFunction<Person>() |
| { |
| public double doubleValueOf(Person person) |
| { |
| return person.getMilesFromNorthPole(); |
| } |
| }); |
| </pre> |
| Co-variant example for MutableCollection: |
| <pre> |
| MutableDoubleCollection doubles = |
| people.collectDouble(person -> person.getMilesFromNorthPole()); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction)">collectDouble</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction)">collectDouble</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction)">collectDouble</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction)">collectDouble</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction)">collectDouble</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction)">collectDouble</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction)">collectDouble</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction)">collectFloat</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/list/primitive/MutableFloatList.html" title="interface in org.eclipse.collections.api.list.primitive">MutableFloatList</a></span> <span class="memberName">collectFloat</span>​(<span class="arguments"><a href="../../../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> floatFunction)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction)">MutableCollection</a></code></span></div> |
| <div class="block">Returns a new primitive <code>float</code> iterable with the results of applying the specified function on each element |
| of the source collection. This method is also commonly called transform or map. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| FloatIterable floats = |
| people.collectFloat(person -> person.getHeightInInches()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| FloatIterable floats = |
| people.collectFloat(new FloatFunction<Person>() |
| { |
| public float floatValueOf(Person person) |
| { |
| return person.getHeightInInches(); |
| } |
| }); |
| </pre> |
| Co-variant example for MutableCollection: |
| <pre> |
| MutableFloatCollection floats = |
| people.collectFloat(person -> person.getHeightInInches()); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction)">collectFloat</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction)">collectFloat</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction)">collectFloat</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction)">collectFloat</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction)">collectFloat</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction)">collectFloat</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction)">collectFloat</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction)">collectInt</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/list/primitive/MutableIntList.html" title="interface in org.eclipse.collections.api.list.primitive">MutableIntList</a></span> <span class="memberName">collectInt</span>​(<span class="arguments"><a href="../../../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> intFunction)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction)">MutableCollection</a></code></span></div> |
| <div class="block">Returns a new primitive <code>int</code> iterable with the results of applying the specified function on each element |
| of the source collection. This method is also commonly called transform or map. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| IntIterable ints = |
| people.collectInt(person -> person.getAge()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| IntIterable ints = |
| people.collectInt(new IntFunction<Person>() |
| { |
| public int intValueOf(Person person) |
| { |
| return person.getAge(); |
| } |
| }); |
| </pre> |
| Co-variant example for MutableCollection: |
| <pre> |
| MutableIntCollection ints = |
| people.collectInt(person -> person.getAge()); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction)">collectInt</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction)">collectInt</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction)">collectInt</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction)">collectInt</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction)">collectInt</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction)">collectInt</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction)">collectInt</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction)">collectLong</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/list/primitive/MutableLongList.html" title="interface in org.eclipse.collections.api.list.primitive">MutableLongList</a></span> <span class="memberName">collectLong</span>​(<span class="arguments"><a href="../../../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> longFunction)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction)">MutableCollection</a></code></span></div> |
| <div class="block">Returns a new primitive <code>long</code> iterable with the results of applying the specified function on each element |
| of the source collection. This method is also commonly called transform or map. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| LongIterable longs = |
| people.collectLong(person -> person.getGuid()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| LongIterable longs = |
| people.collectLong(new LongFunction<Person>() |
| { |
| public long longValueOf(Person person) |
| { |
| return person.getGuid(); |
| } |
| }); |
| </pre> |
| Co-variant example for MutableCollection: |
| <pre> |
| MutableLongCollection longs = |
| people.collectLong(person -> person.getGuid()); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction)">collectLong</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction)">collectLong</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction)">collectLong</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction)">collectLong</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction)">collectLong</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction)">collectLong</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction)">collectLong</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction)">collectShort</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/list/primitive/MutableShortList.html" title="interface in org.eclipse.collections.api.list.primitive">MutableShortList</a></span> <span class="memberName">collectShort</span>​(<span class="arguments"><a href="../../../../api/block/function/primitive/ShortFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ShortFunction</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> shortFunction)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction)">MutableCollection</a></code></span></div> |
| <div class="block">Returns a new primitive <code>short</code> iterable with the results of applying the specified function on each element |
| of the source collection. This method is also commonly called transform or map. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| ShortIterable shorts = |
| people.collectShort(person -> person.getNumberOfJunkMailItemsReceivedPerMonth()); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| ShortIterable shorts = |
| people.collectShort(new ShortFunction<Person>() |
| { |
| public short shortValueOf(Person person) |
| { |
| return person.getNumberOfJunkMailItemsReceivedPerMonth(); |
| } |
| }); |
| </pre> |
| Co-variant example for MutableCollection: |
| <pre> |
| MutableShortCollection shorts = |
| people.collectShort(person -> person.getNumberOfJunkMailItemsReceivedPerMonth()); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction)">collectShort</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction)">collectShort</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction)">collectShort</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction)">collectShort</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction)">collectShort</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction)">collectShort</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction)">collectShort</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="flatCollect(org.eclipse.collections.api.block.function.Function)">flatCollect</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="typeParameters"><V></span> <span class="returnType"><a href="../../../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><V></span> <span class="memberName">flatCollect</span>​(<span class="arguments"><a href="../../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><V>> function)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#flatCollect(org.eclipse.collections.api.block.function.Function)">MutableCollection</a></code></span></div> |
| <div class="block"><code>flatCollect</code> is a special case of <a href="../../../../api/RichIterable.html#collect(org.eclipse.collections.api.block.function.Function)"><code>RichIterable.collect(Function)</code></a>. With <code>collect</code>, when the <a href="../../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function"><code>Function</code></a> returns |
| a collection, the result is a collection of collections. <code>flatCollect</code> outputs a single "flattened" collection |
| instead. This method is commonly called flatMap. |
| <p> |
| Consider the following example where we have a <code>Person</code> class, and each <code>Person</code> has a list of <code>Address</code> objects. Take the following <a href="../../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function"><code>Function</code></a>: |
| <pre> |
| Function<Person, List<Address>> addressFunction = Person::getAddresses; |
| RichIterable<Person> people = ...; |
| </pre> |
| Using <code>collect</code> returns a collection of collections of addresses. |
| <pre> |
| RichIterable<List<Address>> addresses = people.collect(addressFunction); |
| </pre> |
| Using <code>flatCollect</code> returns a single flattened list of addresses. |
| <pre> |
| RichIterable<Address> addresses = people.flatCollect(addressFunction); |
| </pre> |
| Co-variant example for MutableCollection: |
| <pre> |
| Function<Person, List<Address>> addressFunction = Person::getAddresses; |
| MutableCollection<Person> people = ...; |
| MutableCollection<List<Address>> addresses = people.collect(addressFunction); |
| MutableCollection<Address> addresses = people.flatCollect(addressFunction); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#flatCollect(org.eclipse.collections.api.block.function.Function)">flatCollect</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#flatCollect(org.eclipse.collections.api.block.function.Function)">flatCollect</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#flatCollect(org.eclipse.collections.api.block.function.Function)">flatCollect</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#flatCollect(org.eclipse.collections.api.block.function.Function)">flatCollect</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#flatCollect(org.eclipse.collections.api.block.function.Function)">flatCollect</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#flatCollect(org.eclipse.collections.api.block.function.Function)">flatCollect</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#flatCollect(org.eclipse.collections.api.block.function.Function)">flatCollect</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>function</code> - The <a href="../../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function"><code>Function</code></a> to apply</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a new flattened collection produced by applying the given <code>function</code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="distinct()">distinct</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/set/sorted/MutableSortedSet.html" title="interface in org.eclipse.collections.api.set.sorted">MutableSortedSet</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">distinct</span>()</div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/ordered/SortedIterable.html#distinct()">SortedIterable</a></code></span></div> |
| <div class="block">Returns a new <code>SortedIterable</code> containing the distinct elements in this iterable. |
| <p> |
| Conceptually similar to <a href="../../../../api/RichIterable.html#toSet()"><code>RichIterable.toSet()</code></a>.<a href="../../../../api/RichIterable.html#toList()"><code>RichIterable.toList()</code></a> but retains the original order. If an element appears |
| multiple times in this iterable, the first one will be copied into the result.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#distinct()">distinct</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#distinct()">distinct</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#distinct()">distinct</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#distinct()">distinct</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/SortedIterable.html#distinct()">distinct</a></code> in interface <code><a href="../../../../api/ordered/SortedIterable.html" title="interface in org.eclipse.collections.api.ordered">SortedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><code>SortedIterable</code> of distinct elements</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="corresponds(org.eclipse.collections.api.ordered.OrderedIterable,org.eclipse.collections.api.block.predicate.Predicate2)">corresponds</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="typeParameters"><S></span> <span class="returnType">boolean</span> <span class="memberName">corresponds</span>​(<span class="arguments"><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><S> other, |
| <a href="../../../../api/block/predicate/Predicate2.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate2</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? super S> predicate)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/ordered/OrderedIterable.html#corresponds(org.eclipse.collections.api.ordered.OrderedIterable,org.eclipse.collections.api.block.predicate.Predicate2)">OrderedIterable</a></code></span></div> |
| <div class="block">Returns true if both OrderedIterables have the same length |
| and <code>predicate</code> returns true for all corresponding elements e1 of |
| this <code>OrderedIterable</code> and e2 of <code>other</code>. |
| The <code>predicate</code> is evaluated for each element at the same position of each <code>OrderedIterable</code> in a forward iteration order. |
| This is a short circuit pattern.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#corresponds(org.eclipse.collections.api.ordered.OrderedIterable,org.eclipse.collections.api.block.predicate.Predicate2)">corresponds</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="forEach(int,int,org.eclipse.collections.api.block.procedure.Procedure)">forEach</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">forEach</span>​(<span class="arguments">int startIndex, |
| int endIndex, |
| <a href="../../../../api/block/procedure/Procedure.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> procedure)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/ordered/OrderedIterable.html#forEach(int,int,org.eclipse.collections.api.block.procedure.Procedure)">OrderedIterable</a></code></span></div> |
| <div class="block">Iterates over the section of the iterable covered by the specified inclusive indexes. The indexes are |
| both inclusive. |
| |
| <pre>e.g. |
| OrderedIterable<People> people = FastList.newListWith(ted, mary, bob, sally) |
| people.forEach(0, 1, new Procedure<Person>() |
| { |
| public void value(Person person) |
| { |
| LOGGER.info(person.getName()); |
| } |
| }); |
| </pre> |
| <p> |
| This code would output ted and mary's names.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#forEach(int,int,org.eclipse.collections.api.block.procedure.Procedure)">forEach</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="forEachWithIndex(int,int,org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure)">forEachWithIndex</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">forEachWithIndex</span>​(<span class="arguments">int fromIndex, |
| int toIndex, |
| <a href="../../../../api/block/procedure/primitive/ObjectIntProcedure.html" title="interface in org.eclipse.collections.api.block.procedure.primitive">ObjectIntProcedure</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> objectIntProcedure)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/ordered/OrderedIterable.html#forEachWithIndex(int,int,org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure)">OrderedIterable</a></code></span></div> |
| <div class="block">Iterates over the section of the iterable covered by the specified inclusive indexes. The indexes are |
| both inclusive. |
| |
| <pre>e.g. |
| OrderedIterable<People> people = FastList.newListWith(ted, mary, bob, sally) |
| people.forEachWithIndex(0, 1, new ObjectIntProcedure<Person>() |
| { |
| public void value(Person person, int index) |
| { |
| LOGGER.info(person.getName()); |
| } |
| }); |
| </pre> |
| <p> |
| This code would output ted and mary's names.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#forEachWithIndex(int,int,org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure)">forEachWithIndex</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toStack()">toStack</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/stack/MutableStack.html" title="interface in org.eclipse.collections.api.stack">MutableStack</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">toStack</span>()</div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/ordered/OrderedIterable.html#toStack()">OrderedIterable</a></code></span></div> |
| <div class="block">Converts the OrderedIterable to a mutable MutableStack implementation.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#toStack()">toStack</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="indexOf(java.lang.Object)">indexOf</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">int</span> <span class="memberName">indexOf</span>​(<span class="arguments"><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> object)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/ordered/OrderedIterable.html#indexOf(java.lang.Object)">OrderedIterable</a></code></span></div> |
| <div class="block">Returns the index of the first occurrence of the specified item |
| in this iterable, or -1 if this iterable does not contain the item.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#indexOf(java.lang.Object)">indexOf</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true#indexOf(java.lang.Object)" title="class or interface in java.util" class="externalLink"><code>List.indexOf(Object)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="takeWhile(org.eclipse.collections.api.block.predicate.Predicate)">takeWhile</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">takeWhile</span>​(<span class="arguments"><a href="../../../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> predicate)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/ordered/SortedIterable.html#takeWhile(org.eclipse.collections.api.block.predicate.Predicate)">SortedIterable</a></code></span></div> |
| <div class="block">Returns the initial elements that satisfy the Predicate. Short circuits at the first element which does not |
| satisfy the Predicate.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#takeWhile(org.eclipse.collections.api.block.predicate.Predicate)">takeWhile</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#takeWhile(org.eclipse.collections.api.block.predicate.Predicate)">takeWhile</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#takeWhile(org.eclipse.collections.api.block.predicate.Predicate)">takeWhile</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#takeWhile(org.eclipse.collections.api.block.predicate.Predicate)">takeWhile</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/SortedIterable.html#takeWhile(org.eclipse.collections.api.block.predicate.Predicate)">takeWhile</a></code> in interface <code><a href="../../../../api/ordered/SortedIterable.html" title="interface in org.eclipse.collections.api.ordered">SortedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="dropWhile(org.eclipse.collections.api.block.predicate.Predicate)">dropWhile</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">dropWhile</span>​(<span class="arguments"><a href="../../../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> predicate)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/ordered/SortedIterable.html#dropWhile(org.eclipse.collections.api.block.predicate.Predicate)">SortedIterable</a></code></span></div> |
| <div class="block">Returns the final elements that do not satisfy the Predicate. Short circuits at the first element which does |
| satisfy the Predicate.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#dropWhile(org.eclipse.collections.api.block.predicate.Predicate)">dropWhile</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#dropWhile(org.eclipse.collections.api.block.predicate.Predicate)">dropWhile</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#dropWhile(org.eclipse.collections.api.block.predicate.Predicate)">dropWhile</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#dropWhile(org.eclipse.collections.api.block.predicate.Predicate)">dropWhile</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/SortedIterable.html#dropWhile(org.eclipse.collections.api.block.predicate.Predicate)">dropWhile</a></code> in interface <code><a href="../../../../api/ordered/SortedIterable.html" title="interface in org.eclipse.collections.api.ordered">SortedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectWith(org.eclipse.collections.api.block.function.Function2,java.lang.Object)"> |
| <!-- --> |
| </a><a id="collectWith(org.eclipse.collections.api.block.function.Function2,P)">collectWith</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="typeParameters"><P,​ |
| A></span> <span class="returnType"><a href="../../../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><A></span> <span class="memberName">collectWith</span>​(<span class="arguments"><a href="../../../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function">Function2</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? super P,​? extends A> function, |
| P parameter)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#collectWith(org.eclipse.collections.api.block.function.Function2,P)">MutableCollection</a></code></span></div> |
| <div class="block">Same as <a href="../../../../api/RichIterable.html#collect(org.eclipse.collections.api.block.function.Function)"><code>RichIterable.collect(Function)</code></a> with a <code>Function2</code> and specified parameter which is passed to the block. |
| <p> |
| Example using a Java 8 lambda expression: |
| <pre> |
| RichIterable<Integer> integers = |
| Lists.mutable.with(1, 2, 3).collectWith((each, parameter) -> each + parameter, Integer.valueOf(1)); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| Function2<Integer, Integer, Integer> addParameterFunction = |
| new Function2<Integer, Integer, Integer>() |
| { |
| public Integer value(Integer each, Integer parameter) |
| { |
| return each + parameter; |
| } |
| }; |
| RichIterable<Integer> integers = |
| Lists.mutable.with(1, 2, 3).collectWith(addParameterFunction, Integer.valueOf(1)); |
| </pre> |
| Co-variant example for MutableCollection: |
| <pre> |
| MutableCollection<Integer> integers = |
| Lists.mutable.with(1, 2, 3).collectWith((each, parameter) -> each + parameter, Integer.valueOf(1)); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#collectWith(org.eclipse.collections.api.block.function.Function2,P)">collectWith</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#collectWith(org.eclipse.collections.api.block.function.Function2,P)">collectWith</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#collectWith(org.eclipse.collections.api.block.function.Function2,P)">collectWith</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#collectWith(org.eclipse.collections.api.block.function.Function2,P)">collectWith</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#collectWith(org.eclipse.collections.api.block.function.Function2,P)">collectWith</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#collectWith(org.eclipse.collections.api.block.function.Function2,P)">collectWith</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collectWith(org.eclipse.collections.api.block.function.Function2,P)">collectWith</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>function</code> - A <a href="../../../../api/block/function/Function2.html" title="interface in org.eclipse.collections.api.block.function"><code>Function2</code></a> to use as the collect transformation function</dd> |
| <dd><code>parameter</code> - A parameter to pass in for evaluation of the second argument <code>P</code> in <code>function</code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>A new <code>RichIterable</code> that contains the transformed elements returned by <a href="../../../../api/block/function/Function2.html#value(T1,T2)"><code>Function2.value(Object, Object)</code></a></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../api/RichIterable.html#collect(org.eclipse.collections.api.block.function.Function)"><code>RichIterable.collect(Function)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="collectIf(org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function)">collectIf</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="typeParameters"><V></span> <span class="returnType"><a href="../../../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><V></span> <span class="memberName">collectIf</span>​(<span class="arguments"><a href="../../../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> predicate, |
| <a href="../../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? extends V> function)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#collectIf(org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function)">MutableCollection</a></code></span></div> |
| <div class="block">Returns a new MutableCollection with the results of applying the specified function to each element of the source |
| collection, but only for elements that evaluate to true for the specified predicate. |
| |
| <pre> |
| MutableCollection<String> collected = |
| Lists.mutable.of().with(1, 2, 3).collectIf(Predicates.notNull(), Functions.getToString()) |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#collectIf(org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function)">collectIf</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#collectIf(org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function)">collectIf</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#collectIf(org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function)">collectIf</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#collectIf(org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function)">collectIf</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#collectIf(org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function)">collectIf</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#collectIf(org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function)">collectIf</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#collectIf(org.eclipse.collections.api.block.predicate.Predicate,org.eclipse.collections.api.block.function.Function)">collectIf</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="detectIndex(org.eclipse.collections.api.block.predicate.Predicate)">detectIndex</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">int</span> <span class="memberName">detectIndex</span>​(<span class="arguments"><a href="../../../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> predicate)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/ordered/OrderedIterable.html#detectIndex(org.eclipse.collections.api.block.predicate.Predicate)">OrderedIterable</a></code></span></div> |
| <div class="block">Returns the index of the first element of the <code>OrderedIterable</code> for which the <code>predicate</code> evaluates to true. |
| Returns -1 if no element evaluates true for the <code>predicate</code>.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#detectIndex(org.eclipse.collections.api.block.predicate.Predicate)">detectIndex</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="groupBy(org.eclipse.collections.api.block.function.Function)">groupBy</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="typeParameters"><V></span> <span class="returnType"><a href="../../../../api/multimap/sortedbag/MutableSortedBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.sortedbag">MutableSortedBagMultimap</a><V,​<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">groupBy</span>​(<span class="arguments"><a href="../../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? extends V> function)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#groupBy(org.eclipse.collections.api.block.function.Function)">MutableCollection</a></code></span></div> |
| <div class="block">For each element of the iterable, the function is evaluated and the results of these evaluations are collected |
| into a new multimap, where the transformed value is the key and the original values are added to the same (or similar) |
| species of collection as the source iterable. |
| <p> |
| Example using a Java 8 method reference: |
| <pre> |
| Multimap<String, Person> peopleByLastName = |
| people.groupBy(Person::getLastName); |
| </pre> |
| <p> |
| Example using an anonymous inner class: |
| <pre> |
| Multimap<String, Person> peopleByLastName = |
| people.groupBy(new Function<Person, String>() |
| { |
| public String valueOf(Person person) |
| { |
| return person.getLastName(); |
| } |
| }); |
| </pre> |
| Co-variant example for MutableCollection: |
| <pre> |
| MutableMultimap<String, Person> peopleByLastName = |
| people.groupBy(Person::getLastName); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#groupBy(org.eclipse.collections.api.block.function.Function)">groupBy</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#groupBy(org.eclipse.collections.api.block.function.Function)">groupBy</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#groupBy(org.eclipse.collections.api.block.function.Function)">groupBy</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#groupBy(org.eclipse.collections.api.block.function.Function)">groupBy</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#groupBy(org.eclipse.collections.api.block.function.Function)">groupBy</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#groupBy(org.eclipse.collections.api.block.function.Function)">groupBy</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#groupBy(org.eclipse.collections.api.block.function.Function)">groupBy</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#groupBy(org.eclipse.collections.api.block.function.Function)">groupBy</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/SortedIterable.html#groupBy(org.eclipse.collections.api.block.function.Function)">groupBy</a></code> in interface <code><a href="../../../../api/ordered/SortedIterable.html" title="interface in org.eclipse.collections.api.ordered">SortedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#groupBy(org.eclipse.collections.api.block.function.Function)">groupBy</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="groupByEach(org.eclipse.collections.api.block.function.Function)">groupByEach</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="typeParameters"><V></span> <span class="returnType"><a href="../../../../api/multimap/sortedbag/MutableSortedBagMultimap.html" title="interface in org.eclipse.collections.api.multimap.sortedbag">MutableSortedBagMultimap</a><V,​<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">groupByEach</span>​(<span class="arguments"><a href="../../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><V>> function)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/RichIterable.html#groupByEach(org.eclipse.collections.api.block.function.Function)">RichIterable</a></code></span></div> |
| <div class="block">Similar to <a href="../../../../api/RichIterable.html#groupBy(org.eclipse.collections.api.block.function.Function)"><code>RichIterable.groupBy(Function)</code></a>, except the result of evaluating function will return a collection of keys |
| for each value.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#groupByEach(org.eclipse.collections.api.block.function.Function)">groupByEach</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#groupByEach(org.eclipse.collections.api.block.function.Function)">groupByEach</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#groupByEach(org.eclipse.collections.api.block.function.Function)">groupByEach</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#groupByEach(org.eclipse.collections.api.block.function.Function)">groupByEach</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#groupByEach(org.eclipse.collections.api.block.function.Function)">groupByEach</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#groupByEach(org.eclipse.collections.api.block.function.Function)">groupByEach</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#groupByEach(org.eclipse.collections.api.block.function.Function)">groupByEach</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#groupByEach(org.eclipse.collections.api.block.function.Function)">groupByEach</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/SortedIterable.html#groupByEach(org.eclipse.collections.api.block.function.Function)">groupByEach</a></code> in interface <code><a href="../../../../api/ordered/SortedIterable.html" title="interface in org.eclipse.collections.api.ordered">SortedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#groupByEach(org.eclipse.collections.api.block.function.Function)">groupByEach</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="zip(java.lang.Iterable)">zip</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="typeParameters"><S></span> <span class="returnType"><a href="../../../../api/list/MutableList.html" title="interface in org.eclipse.collections.api.list">MutableList</a><<a href="../../../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​S>></span> <span class="memberName">zip</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><S> that)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/RichIterable.html#zip(java.lang.Iterable)">RichIterable</a></code></span></div> |
| <div class="block">Returns a <code>RichIterable</code> formed from this <code>RichIterable</code> and another <code>RichIterable</code> by |
| combining corresponding elements in pairs. If one of the two <code>RichIterable</code>s is longer than the other, its |
| remaining elements are ignored.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#zip(java.lang.Iterable)">zip</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#zip(java.lang.Iterable)">zip</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#zip(java.lang.Iterable)">zip</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#zip(java.lang.Iterable)">zip</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#zip(java.lang.Iterable)">zip</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/SortedIterable.html#zip(java.lang.Iterable)">zip</a></code> in interface <code><a href="../../../../api/ordered/SortedIterable.html" title="interface in org.eclipse.collections.api.ordered">SortedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#zip(java.lang.Iterable)">zip</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>S</code> - the type of the second half of the returned pairs</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>that</code> - The <code>RichIterable</code> providing the second half of each result pair</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>A new <code>RichIterable</code> containing pairs consisting of corresponding elements of this <code> |
| RichIterable</code> and that. The length of the returned <code>RichIterable</code> is the minimum of the lengths of |
| this <code>RichIterable</code> and that.</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="zip(java.lang.Iterable,java.util.Collection)"> |
| <!-- --> |
| </a><a id="zip(java.lang.Iterable,R)">zip</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="typeParameters"><S,​ |
| R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><<a href="../../../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​ |
| S>>></span> <span class="returnType">R</span> <span class="memberName">zip</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><S> that, |
| R target)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/RichIterable.html#zip(java.lang.Iterable,R)">RichIterable</a></code></span></div> |
| <div class="block">Same as <a href="../../../../api/RichIterable.html#zip(java.lang.Iterable)"><code>RichIterable.zip(Iterable)</code></a> but uses <code>target</code> for output.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#zip(java.lang.Iterable,R)">zip</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#zip(java.lang.Iterable,R)">zip</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#zip(java.lang.Iterable,R)">zip</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="zipWithIndex()">zipWithIndex</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/set/sorted/MutableSortedSet.html" title="interface in org.eclipse.collections.api.set.sorted">MutableSortedSet</a><<a href="../../../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang" class="externalLink">Integer</a>>></span> <span class="memberName">zipWithIndex</span>()</div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/RichIterable.html#zipWithIndex()">RichIterable</a></code></span></div> |
| <div class="block">Zips this <code>RichIterable</code> with its indices.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#zipWithIndex()">zipWithIndex</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#zipWithIndex()">zipWithIndex</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#zipWithIndex()">zipWithIndex</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#zipWithIndex()">zipWithIndex</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#zipWithIndex()">zipWithIndex</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#zipWithIndex()">zipWithIndex</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#zipWithIndex()">zipWithIndex</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#zipWithIndex()">zipWithIndex</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/SortedIterable.html#zipWithIndex()">zipWithIndex</a></code> in interface <code><a href="../../../../api/ordered/SortedIterable.html" title="interface in org.eclipse.collections.api.ordered">SortedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#zipWithIndex()">zipWithIndex</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>A new <code>RichIterable</code> containing pairs consisting of all elements of this <code>RichIterable</code> |
| paired with their index. Indices start at 0.</dd> |
| <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="zipWithIndex(java.util.Collection)"> |
| <!-- --> |
| </a><a id="zipWithIndex(R)">zipWithIndex</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="typeParameters"><R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><<a href="../../../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>,​ |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang" class="externalLink">Integer</a>>>></span> <span class="returnType">R</span> <span class="memberName">zipWithIndex</span>​(<span class="arguments">R target)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/RichIterable.html#zipWithIndex(R)">RichIterable</a></code></span></div> |
| <div class="block">Same as <a href="../../../../api/RichIterable.html#zipWithIndex()"><code>RichIterable.zipWithIndex()</code></a> but uses <code>target</code> for output.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/OrderedIterable.html#zipWithIndex(R)">zipWithIndex</a></code> in interface <code><a href="../../../../api/ordered/OrderedIterable.html" title="interface in org.eclipse.collections.api.ordered">OrderedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/RichIterable.html#zipWithIndex(R)">zipWithIndex</a></code> in interface <code><a href="../../../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#zipWithIndex(R)">zipWithIndex</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toReversed()">toReversed</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">toReversed</span>()</div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/ordered/ReversibleIterable.html#toReversed()">ReversibleIterable</a></code></span></div> |
| <div class="block">Returns a new ReversibleIterable in reverse order.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#toReversed()">toReversed</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#toReversed()">toReversed</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#toReversed()">toReversed</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="take(int)">take</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">take</span>​(<span class="arguments">int count)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/ordered/ReversibleIterable.html#take(int)">ReversibleIterable</a></code></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="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#take(int)">take</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#take(int)">take</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#take(int)">take</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>count</code> - the number of items to take.</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="drop(int)">drop</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">drop</span>​(<span class="arguments">int count)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/ordered/ReversibleIterable.html#drop(int)">ReversibleIterable</a></code></span></div> |
| <div class="block">Returns an iterable after skipping the first <code>count</code> elements |
| or an empty iterable if the <code>count</code> is greater than the length of the iterable.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#drop(int)">drop</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#drop(int)">drop</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#drop(int)">drop</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>count</code> - the number of items to drop.</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="reverseForEach(org.eclipse.collections.api.block.procedure.Procedure)">reverseForEach</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">reverseForEach</span>​(<span class="arguments"><a href="../../../../api/block/procedure/Procedure.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> procedure)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/ordered/ReversibleIterable.html#reverseForEach(org.eclipse.collections.api.block.procedure.Procedure)">ReversibleIterable</a></code></span></div> |
| <div class="block">Evaluates the procedure for each element of the list iterating in reverse order. |
| |
| <pre>e.g. |
| people.reverseForEach(person -> LOGGER.info(person.getName())); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#reverseForEach(org.eclipse.collections.api.block.procedure.Procedure)">reverseForEach</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="reverseForEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure)">reverseForEachWithIndex</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">void</span> <span class="memberName">reverseForEachWithIndex</span>​(<span class="arguments"><a href="../../../../api/block/procedure/primitive/ObjectIntProcedure.html" title="interface in org.eclipse.collections.api.block.procedure.primitive">ObjectIntProcedure</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> procedure)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/ordered/ReversibleIterable.html#reverseForEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure)">ReversibleIterable</a></code></span></div> |
| <div class="block">Evaluates the procedure for each element and it's index in reverse order. |
| <pre>e.g. |
| people.reverseForEachWithIndex((person, index) -> |
| LOGGER.info("Index: " + index + " person: " + person.getName())); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#reverseForEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure)">reverseForEachWithIndex</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="asReversed()">asReversed</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/LazyIterable.html" title="interface in org.eclipse.collections.api">LazyIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">asReversed</span>()</div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/ordered/ReversibleIterable.html#asReversed()">ReversibleIterable</a></code></span></div> |
| <div class="block">Returns a reversed view of this ReversibleIterable.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#asReversed()">asReversed</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="detectLastIndex(org.eclipse.collections.api.block.predicate.Predicate)">detectLastIndex</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">int</span> <span class="memberName">detectLastIndex</span>​(<span class="arguments"><a href="../../../../api/block/predicate/Predicate.html" title="interface in org.eclipse.collections.api.block.predicate">Predicate</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> predicate)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/ordered/ReversibleIterable.html#detectLastIndex(org.eclipse.collections.api.block.predicate.Predicate)">ReversibleIterable</a></code></span></div> |
| <div class="block">Returns the index of the last element of the <code>ReversibleIterable</code> for which the <code>predicate</code> evaluates to true. |
| Returns -1 if no element evaluates true for the <code>predicate</code>.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/ReversibleIterable.html#detectLastIndex(org.eclipse.collections.api.block.predicate.Predicate)">detectLastIndex</a></code> in interface <code><a href="../../../../api/ordered/ReversibleIterable.html" title="interface in org.eclipse.collections.api.ordered">ReversibleIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="comparator()">comparator</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a><? super <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">comparator</span>()</div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/bag/sorted/SortedBag.html#comparator()">SortedBag</a></code></span></div> |
| <div class="block">Returns the comparator used to order the elements in this bag, or null if this bag uses the natural ordering of |
| its elements.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#comparator()">comparator</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/ordered/SortedIterable.html#comparator()">comparator</a></code> in interface <code><a href="../../../../api/ordered/SortedIterable.html" title="interface in org.eclipse.collections.api.ordered">SortedIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="with(java.lang.Object)"> |
| <!-- --> |
| </a><a id="with(T)">with</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">with</span>​(<span class="arguments"><a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a> element)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#with(T)">MutableCollection</a></code></span></div> |
| <div class="block">This method allows mutable and fixed size collections the ability to add elements to their existing elements. |
| In order to support fixed size a new instance of a collection would have to be returned taking the elements of |
| the original collection and appending the new element to form the new collection. In the case of mutable |
| collections, the original collection is modified, and is returned. In order to use this method properly with |
| mutable and fixed size collections the following approach must be taken: |
| |
| <pre> |
| MutableCollection<String> list = list.with("1"); |
| list = list.with("2"); |
| return list; |
| </pre> |
| In the case of <a href="../../../../api/collection/FixedSizeCollection.html" title="interface in org.eclipse.collections.api.collection"><code>FixedSizeCollection</code></a> a new instance of MutableCollection will be returned by with, and any |
| variables that previously referenced the original collection will need to be redirected to reference the |
| new instance. For other MutableCollection types you will replace the reference to collection with the same |
| collection, since the instance will return "this" after calling add on itself.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#with(T)">with</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#with(T)">with</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#with(T)">with</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#with(T)">with</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#add(E)" title="class or interface in java.util" class="externalLink"><code>Collection.add(Object)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="without(java.lang.Object)"> |
| <!-- --> |
| </a><a id="without(T)">without</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">without</span>​(<span class="arguments"><a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a> element)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#without(T)">MutableCollection</a></code></span></div> |
| <div class="block">This method allows mutable and fixed size collections the ability to remove elements from their existing elements. |
| In order to support fixed size a new instance of a collection would have to be returned containing the elements |
| that would be left from the original collection after calling remove. In the case of mutable collections, the |
| original collection is modified, and is returned. In order to use this method properly with mutable and fixed |
| size collections the following approach must be taken: |
| |
| <pre> |
| MutableCollection<String> list = list.without("1"); |
| list = list.without("2"); |
| return list; |
| </pre> |
| In the case of <a href="../../../../api/collection/FixedSizeCollection.html" title="interface in org.eclipse.collections.api.collection"><code>FixedSizeCollection</code></a> a new instance of MutableCollection will be returned by without, and |
| any variables that previously referenced the original collection will need to be redirected to reference the |
| new instance. For other MutableCollection types you will replace the reference to collection with the same |
| collection, since the instance will return "this" after calling remove on itself.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#without(T)">without</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#without(T)">without</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#without(T)">without</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#without(T)">without</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#remove(java.lang.Object)" title="class or interface in java.util" class="externalLink"><code>Collection.remove(Object)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="withAll(java.lang.Iterable)">withAll</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">withAll</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><? extends <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> elements)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#withAll(java.lang.Iterable)">MutableCollection</a></code></span></div> |
| <div class="block">This method allows mutable and fixed size collections the ability to add multiple elements to their existing |
| elements. In order to support fixed size a new instance of a collection would have to be returned taking the |
| elements of the original collection and appending the new elements to form the new collection. In the case of |
| mutable collections, the original collection is modified, and is returned. In order to use this method properly |
| with mutable and fixed size collections the following approach must be taken: |
| |
| <pre> |
| MutableCollection<String> list = list.withAll(FastList.newListWith("1", "2")); |
| </pre> |
| In the case of <a href="../../../../api/collection/FixedSizeCollection.html" title="interface in org.eclipse.collections.api.collection"><code>FixedSizeCollection</code></a> a new instance of MutableCollection will be returned by withAll, and |
| any variables that previously referenced the original collection will need to be redirected to reference the |
| new instance. For other MutableCollection types you will replace the reference to collection with the same |
| collection, since the instance will return "this" after calling addAll on itself.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#withAll(java.lang.Iterable)">withAll</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#withAll(java.lang.Iterable)">withAll</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#withAll(java.lang.Iterable)">withAll</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#withAll(java.lang.Iterable)">withAll</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#addAll(java.util.Collection)" title="class or interface in java.util" class="externalLink"><code>Collection.addAll(Collection)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="withoutAll(java.lang.Iterable)">withoutAll</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">withoutAll</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Iterable</a><? extends <a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> elements)</span></div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/collection/MutableCollection.html#withoutAll(java.lang.Iterable)">MutableCollection</a></code></span></div> |
| <div class="block">This method allows mutable and fixed size collections the ability to remove multiple elements from their existing |
| elements. In order to support fixed size a new instance of a collection would have to be returned containing the |
| elements that would be left from the original collection after calling removeAll. In the case of mutable |
| collections, the original collection is modified, and is returned. In order to use this method properly with |
| mutable and fixed size collections the following approach must be taken: |
| |
| <pre> |
| MutableCollection<String> list = list.withoutAll(FastList.newListWith("1", "2")); |
| </pre> |
| In the case of <a href="../../../../api/collection/FixedSizeCollection.html" title="interface in org.eclipse.collections.api.collection"><code>FixedSizeCollection</code></a> a new instance of MutableCollection will be returned by withoutAll, |
| and any variables that previously referenced the original collection will need to be redirected to reference the |
| new instance. For other MutableCollection types you will replace the reference to collection with the same |
| collection, since the instance will return "this" after calling removeAll on itself.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#withoutAll(java.lang.Iterable)">withoutAll</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/collection/MutableCollection.html#withoutAll(java.lang.Iterable)">withoutAll</a></code> in interface <code><a href="../../../../api/collection/MutableCollection.html" title="interface in org.eclipse.collections.api.collection">MutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#withoutAll(java.lang.Iterable)">withoutAll</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html#withoutAll(java.lang.Iterable)">withoutAll</a></code> in class <code><a href="../../../collection/mutable/AbstractUnmodifiableMutableCollection.html" title="class in org.eclipse.collections.impl.collection.mutable">AbstractUnmodifiableMutableCollection</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true#removeAll(java.util.Collection)" title="class or interface in java.util" class="externalLink"><code>Collection.removeAll(Collection)</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="compareTo(org.eclipse.collections.api.bag.sorted.SortedBag)">compareTo</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType">int</span> <span class="memberName">compareTo</span>​(<span class="arguments"><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>> o)</span></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true#compareTo(T)" title="class or interface in java.lang" class="externalLink">compareTo</a></code> in interface <code><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><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="selectUnique()">selectUnique</a></h3> |
| <div class="memberSignature"><span class="modifiers">public</span> <span class="returnType"><a href="../../../../api/set/sorted/MutableSortedSet.html" title="interface in org.eclipse.collections.api.set.sorted">MutableSortedSet</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></span> <span class="memberName">selectUnique</span>()</div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../api/bag/Bag.html#selectUnique()">Bag</a></code></span></div> |
| <div class="block">Returns a set containing all elements of the bag that have exactly one occurrence.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/Bag.html#selectUnique()">selectUnique</a></code> in interface <code><a href="../../../../api/bag/Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/MutableBagIterable.html#selectUnique()">selectUnique</a></code> in interface <code><a href="../../../../api/bag/MutableBagIterable.html" title="interface in org.eclipse.collections.api.bag">MutableBagIterable</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/MutableSortedBag.html#selectUnique()">selectUnique</a></code> in interface <code><a href="../../../../api/bag/sorted/MutableSortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">MutableSortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../api/bag/sorted/SortedBag.html#selectUnique()">selectUnique</a></code> in interface <code><a href="../../../../api/bag/sorted/SortedBag.html" title="interface in org.eclipse.collections.api.bag.sorted">SortedBag</a><<a href="UnmodifiableSortedBag.html" title="type parameter in UnmodifiableSortedBag">T</a>></code></dd> |
| </dl> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| </main> |
| <footer role="contentinfo"> |
| <nav role="navigation"> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a id="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/UnmodifiableSortedBag.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| </div> |
| <a id="skip.navbar.bottom"> |
| <!-- --> |
| </a> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </nav> |
| <p class="legalCopy"><small>Copyright © 2004–2020. All rights reserved.</small></p> |
| </footer> |
| </div> |
| </div> |
| </body> |
| </html> |