blob: 684f114bf3146d047a2543e75b2a0a8f2b4d594e [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (14.0.2) on Thu Aug 20 21:25:36 CDT 2020 -->
<title>IntBag (Eclipse Collections - 10.4.0)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2020-08-20">
<meta name="description" content="declaration: package: org.eclipse.collections.api.bag.primitive, interface: IntBag">
<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":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":18,"i10":6,"i11":6,"i12":18,"i13":6,"i14":6,"i15":18};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],16:["t5","Default 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/IntBag.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<div class="navListSearch"><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="skipNav"><a id="skip.navbar.top">
<!-- -->
</a></div>
</nav>
</header>
<div class="flexContent">
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.eclipse.collections.api.bag.primitive</a></div>
<h1 title="Interface IntBag" class="title">Interface IntBag</h1>
</div>
<div class="contentContainer">
<section class="description">
<dl>
<dt>All Superinterfaces:</dt>
<dd><code><a href="../../IntIterable.html" title="interface in org.eclipse.collections.api">IntIterable</a></code>, <code><a href="../../PrimitiveIterable.html" title="interface in org.eclipse.collections.api">PrimitiveIterable</a></code></dd>
</dl>
<dl>
<dt>All Known Subinterfaces:</dt>
<dd><code><a href="ImmutableIntBag.html" title="interface in org.eclipse.collections.api.bag.primitive">ImmutableIntBag</a></code>, <code><a href="MutableIntBag.html" title="interface in org.eclipse.collections.api.bag.primitive">MutableIntBag</a></code></dd>
</dl>
<dl>
<dt>All Known Implementing Classes:</dt>
<dd><code><a href="../../../impl/bag/mutable/primitive/IntHashBag.html" title="class in org.eclipse.collections.impl.bag.mutable.primitive">IntHashBag</a></code>, <code><a href="../../../impl/bag/mutable/primitive/SynchronizedIntBag.html" title="class in org.eclipse.collections.impl.bag.mutable.primitive">SynchronizedIntBag</a></code>, <code><a href="../../../impl/bag/mutable/primitive/UnmodifiableIntBag.html" title="class in org.eclipse.collections.impl.bag.mutable.primitive">UnmodifiableIntBag</a></code></dd>
</dl>
<hr>
<pre>public interface <span class="typeNameLabel">IntBag</span>
extends <a href="../../IntIterable.html" title="interface in org.eclipse.collections.api">IntIterable</a></pre>
<div class="block">This file was automatically generated from template file primitiveBag.stg.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>3.0.</dd>
</dl>
</section>
<section class="summary">
<ul class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<li class="blockList">
<section class="methodSummary"><a id="method.summary">
<!-- -->
</a>
<h2>Method Summary</h2>
<div class="memberSummary">
<div role="tablist" aria-orientation="horizontal"><button role="tab" aria-selected="true" aria-controls="memberSummary_tabpanel" tabindex="0" onkeydown="switchTab(event)" id="t0" class="activeTableTab">All Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="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="t3" class="tableTab" onclick="show(4);">Abstract Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t5" class="tableTab" onclick="show(16);">Default Methods</button></div>
<div id="memberSummary_tabpanel" role="tabpanel">
<table aria-labelledby="t0">
<thead>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr class="altColor" id="i0">
<td class="colFirst"><code><a href="../../list/ListIterable.html" title="interface in org.eclipse.collections.api.list">ListIterable</a>&lt;<a href="../../tuple/primitive/IntIntPair.html" title="interface in org.eclipse.collections.api.tuple.primitive">IntIntPair</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#bottomOccurrences(int)">bottomOccurrences</a></span>&#8203;(int&nbsp;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="i1">
<td class="colFirst"><code>&lt;V&gt;&nbsp;<a href="../Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a>&lt;V&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collect(org.eclipse.collections.api.block.function.primitive.IntToObjectFunction)">collect</a></span>&#8203;(<a href="../../block/function/primitive/IntToObjectFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntToObjectFunction</a>&lt;? extends V&gt;&nbsp;function)</code></th>
<td class="colLast">
<div class="block">Returns a new collection with the results of applying the specified function on each element of the source
collection.</div>
</td>
</tr>
<tr class="altColor" id="i2">
<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>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;o)</code></th>
<td class="colLast">
<div class="block">Follows the same general contract as <a href="../Bag.html#equals(java.lang.Object)"><code>Bag.equals(Object)</code></a>.</div>
</td>
</tr>
<tr class="rowColor" id="i3">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.IntIntProcedure)">forEachWithOccurrences</a></span>&#8203;(<a href="../../block/procedure/primitive/IntIntProcedure.html" title="interface in org.eclipse.collections.api.block.procedure.primitive">IntIntProcedure</a>&nbsp;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="i4">
<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">Follows the same general contract as <a href="../Bag.html#hashCode()"><code>Bag.hashCode()</code></a>.</div>
</td>
</tr>
<tr class="rowColor" id="i5">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#occurrencesOf(int)">occurrencesOf</a></span>&#8203;(int&nbsp;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="i6">
<td class="colFirst"><code><a href="IntBag.html" title="interface in org.eclipse.collections.api.bag.primitive">IntBag</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reject(org.eclipse.collections.api.block.predicate.primitive.IntPredicate)">reject</a></span>&#8203;(<a href="../../block/predicate/primitive/IntPredicate.html" title="interface in org.eclipse.collections.api.block.predicate.primitive">IntPredicate</a>&nbsp;predicate)</code></th>
<td class="colLast">
<div class="block">Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.</div>
</td>
</tr>
<tr class="rowColor" id="i7">
<td class="colFirst"><code><a href="IntBag.html" title="interface in org.eclipse.collections.api.bag.primitive">IntBag</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#select(org.eclipse.collections.api.block.predicate.primitive.IntPredicate)">select</a></span>&#8203;(<a href="../../block/predicate/primitive/IntPredicate.html" title="interface in org.eclipse.collections.api.block.predicate.primitive">IntPredicate</a>&nbsp;predicate)</code></th>
<td class="colLast">
<div class="block">Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.</div>
</td>
</tr>
<tr class="altColor" id="i8">
<td class="colFirst"><code><a href="IntBag.html" title="interface in org.eclipse.collections.api.bag.primitive">IntBag</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>&#8203;(<a href="../../block/predicate/primitive/IntPredicate.html" title="interface in org.eclipse.collections.api.block.predicate.primitive">IntPredicate</a>&nbsp;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="i9">
<td class="colFirst"><code>default <a href="IntBag.html" title="interface in org.eclipse.collections.api.bag.primitive">IntBag</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#selectDuplicates()">selectDuplicates</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns all elements of the bag that have more than one occurrence.</div>
</td>
</tr>
<tr class="altColor" id="i10">
<td class="colFirst"><code><a href="../../set/primitive/IntSet.html" title="interface in org.eclipse.collections.api.set.primitive">IntSet</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 all elements of the bag that have exactly one occurrence.</div>
</td>
</tr>
<tr class="rowColor" id="i11">
<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="i12">
<td class="colFirst"><code>default <a href="IntBag.html" title="interface in org.eclipse.collections.api.bag.primitive">IntBag</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#tap(org.eclipse.collections.api.block.procedure.primitive.IntProcedure)">tap</a></span>&#8203;(<a href="../../block/procedure/primitive/IntProcedure.html" title="interface in org.eclipse.collections.api.block.procedure.primitive">IntProcedure</a>&nbsp;procedure)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i13">
<td class="colFirst"><code><a href="ImmutableIntBag.html" title="interface in org.eclipse.collections.api.bag.primitive">ImmutableIntBag</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toImmutable()">toImmutable</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns an immutable copy of this bag.</div>
</td>
</tr>
<tr class="altColor" id="i14">
<td class="colFirst"><code><a href="../../list/ListIterable.html" title="interface in org.eclipse.collections.api.list">ListIterable</a>&lt;<a href="../../tuple/primitive/IntIntPair.html" title="interface in org.eclipse.collections.api.tuple.primitive">IntIntPair</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#topOccurrences(int)">topOccurrences</a></span>&#8203;(int&nbsp;count)</code></th>
<td class="colLast">
<div class="block">Returns the <code>count</code> most frequently occurring items.</div>
</td>
</tr>
<tr class="rowColor" id="i15">
<td class="colFirst"><code>default <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">&nbsp;</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="inheritedList">
<h3>Methods inherited from interface&nbsp;org.eclipse.collections.api.<a href="../../IntIterable.html" title="interface in org.eclipse.collections.api">IntIterable</a></h3>
<a id="methods.inherited.from.class.org.eclipse.collections.api.IntIterable">
<!-- -->
</a><code><a href="../../IntIterable.html#allSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate)">allSatisfy</a>, <a href="../../IntIterable.html#anySatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate)">anySatisfy</a>, <a href="../../IntIterable.html#asLazy()">asLazy</a>, <a href="../../IntIterable.html#average()">average</a>, <a href="../../IntIterable.html#averageIfEmpty(double)">averageIfEmpty</a>, <a href="../../IntIterable.html#chunk(int)">chunk</a>, <a href="../../IntIterable.html#collect(org.eclipse.collections.api.block.function.primitive.IntToObjectFunction,R)">collect</a>, <a href="../../IntIterable.html#collectBoolean(org.eclipse.collections.api.block.function.primitive.IntToBooleanFunction,R)">collectBoolean</a>, <a href="../../IntIterable.html#collectByte(org.eclipse.collections.api.block.function.primitive.IntToByteFunction,R)">collectByte</a>, <a href="../../IntIterable.html#collectChar(org.eclipse.collections.api.block.function.primitive.IntToCharFunction,R)">collectChar</a>, <a href="../../IntIterable.html#collectDouble(org.eclipse.collections.api.block.function.primitive.IntToDoubleFunction,R)">collectDouble</a>, <a href="../../IntIterable.html#collectFloat(org.eclipse.collections.api.block.function.primitive.IntToFloatFunction,R)">collectFloat</a>, <a href="../../IntIterable.html#collectInt(org.eclipse.collections.api.block.function.primitive.IntToIntFunction,R)">collectInt</a>, <a href="../../IntIterable.html#collectLong(org.eclipse.collections.api.block.function.primitive.IntToLongFunction,R)">collectLong</a>, <a href="../../IntIterable.html#collectShort(org.eclipse.collections.api.block.function.primitive.IntToShortFunction,R)">collectShort</a>, <a href="../../IntIterable.html#contains(int)">contains</a>, <a href="../../IntIterable.html#containsAll(int...)">containsAll</a>, <a href="../../IntIterable.html#containsAll(org.eclipse.collections.api.IntIterable)">containsAll</a>, <a href="../../IntIterable.html#count(org.eclipse.collections.api.block.predicate.primitive.IntPredicate)">count</a>, <a href="../../IntIterable.html#detectIfNone(org.eclipse.collections.api.block.predicate.primitive.IntPredicate,int)">detectIfNone</a>, <a href="../../IntIterable.html#each(org.eclipse.collections.api.block.procedure.primitive.IntProcedure)">each</a>, <a href="../../IntIterable.html#flatCollect(org.eclipse.collections.api.block.function.primitive.IntToObjectFunction,R)">flatCollect</a>, <a href="../../IntIterable.html#forEach(org.eclipse.collections.api.block.procedure.primitive.IntProcedure)">forEach</a>, <a href="../../IntIterable.html#injectInto(T,org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction)">injectInto</a>, <a href="../../IntIterable.html#intIterator()">intIterator</a>, <a href="../../IntIterable.html#max()">max</a>, <a href="../../IntIterable.html#maxIfEmpty(int)">maxIfEmpty</a>, <a href="../../IntIterable.html#median()">median</a>, <a href="../../IntIterable.html#medianIfEmpty(double)">medianIfEmpty</a>, <a href="../../IntIterable.html#min()">min</a>, <a href="../../IntIterable.html#minIfEmpty(int)">minIfEmpty</a>, <a href="../../IntIterable.html#noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate)">noneSatisfy</a>, <a href="../../IntIterable.html#reduce(org.eclipse.collections.api.block.function.primitive.LongIntToLongFunction)">reduce</a>, <a href="../../IntIterable.html#reduceIfEmpty(org.eclipse.collections.api.block.function.primitive.LongIntToLongFunction,long)">reduceIfEmpty</a>, <a href="../../IntIterable.html#reject(org.eclipse.collections.api.block.predicate.primitive.IntPredicate,R)">reject</a>, <a href="../../IntIterable.html#select(org.eclipse.collections.api.block.predicate.primitive.IntPredicate,R)">select</a>, <a href="../../IntIterable.html#sum()">sum</a>, <a href="../../IntIterable.html#summaryStatistics()">summaryStatistics</a>, <a href="../../IntIterable.html#toArray()">toArray</a>, <a href="../../IntIterable.html#toArray(int%5B%5D)">toArray</a>, <a href="../../IntIterable.html#toBag()">toBag</a>, <a href="../../IntIterable.html#toList()">toList</a>, <a href="../../IntIterable.html#toSet()">toSet</a>, <a href="../../IntIterable.html#toSortedArray()">toSortedArray</a>, <a href="../../IntIterable.html#toSortedList()">toSortedList</a></code></div>
<div class="inheritedList">
<h3>Methods inherited from interface&nbsp;org.eclipse.collections.api.<a href="../../PrimitiveIterable.html" title="interface in org.eclipse.collections.api">PrimitiveIterable</a></h3>
<a id="methods.inherited.from.class.org.eclipse.collections.api.PrimitiveIterable">
<!-- -->
</a><code><a href="../../PrimitiveIterable.html#appendString(java.lang.Appendable)">appendString</a>, <a href="../../PrimitiveIterable.html#appendString(java.lang.Appendable,java.lang.String)">appendString</a>, <a href="../../PrimitiveIterable.html#appendString(java.lang.Appendable,java.lang.String,java.lang.String,java.lang.String)">appendString</a>, <a href="../../PrimitiveIterable.html#isEmpty()">isEmpty</a>, <a href="../../PrimitiveIterable.html#makeString()">makeString</a>, <a href="../../PrimitiveIterable.html#makeString(java.lang.String)">makeString</a>, <a href="../../PrimitiveIterable.html#makeString(java.lang.String,java.lang.String,java.lang.String)">makeString</a>, <a href="../../PrimitiveIterable.html#notEmpty()">notEmpty</a>, <a href="../../PrimitiveIterable.html#size()">size</a>, <a href="../../PrimitiveIterable.html#toString()">toString</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="sizeDistinct()">sizeDistinct</a></h3>
<div class="memberSignature"><span class="returnType">int</span>&nbsp;<span class="memberName">sizeDistinct</span>()</div>
<div class="block">The size of the Bag when counting only distinct elements.</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="tap(org.eclipse.collections.api.block.procedure.primitive.IntProcedure)">tap</a></h3>
<div class="memberSignature"><span class="modifiers">default</span>&nbsp;<span class="returnType"><a href="IntBag.html" title="interface in org.eclipse.collections.api.bag.primitive">IntBag</a></span>&nbsp;<span class="memberName">tap</span>&#8203;(<span class="arguments"><a href="../../block/procedure/primitive/IntProcedure.html" title="interface in org.eclipse.collections.api.block.procedure.primitive">IntProcedure</a>&nbsp;procedure)</span></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../IntIterable.html#tap(org.eclipse.collections.api.block.procedure.primitive.IntProcedure)">tap</a></code>&nbsp;in interface&nbsp;<code><a href="../../IntIterable.html" title="interface in org.eclipse.collections.api">IntIterable</a></code></dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>9.0.</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="returnType"><a href="IntBag.html" title="interface in org.eclipse.collections.api.bag.primitive">IntBag</a></span>&nbsp;<span class="memberName">selectByOccurrences</span>&#8203;(<span class="arguments"><a href="../../block/predicate/primitive/IntPredicate.html" title="interface in org.eclipse.collections.api.block.predicate.primitive">IntPredicate</a>&nbsp;predicate)</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="simpleTagLabel">Since:</span></dt>
<dd>8.0</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="selectDuplicates()">selectDuplicates</a></h3>
<div class="memberSignature"><span class="modifiers">default</span>&nbsp;<span class="returnType"><a href="IntBag.html" title="interface in org.eclipse.collections.api.bag.primitive">IntBag</a></span>&nbsp;<span class="memberName">selectDuplicates</span>()</div>
<div class="block">Returns all elements of the bag that have more than one occurrence.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>9.2</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="selectUnique()">selectUnique</a></h3>
<div class="memberSignature"><span class="returnType"><a href="../../set/primitive/IntSet.html" title="interface in org.eclipse.collections.api.set.primitive">IntSet</a></span>&nbsp;<span class="memberName">selectUnique</span>()</div>
<div class="block">Returns all elements of the bag that have exactly one occurrence.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>9.2</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="topOccurrences(int)">topOccurrences</a></h3>
<div class="memberSignature"><span class="returnType"><a href="../../list/ListIterable.html" title="interface in org.eclipse.collections.api.list">ListIterable</a>&lt;<a href="../../tuple/primitive/IntIntPair.html" title="interface in org.eclipse.collections.api.tuple.primitive">IntIntPair</a>&gt;</span>&nbsp;<span class="memberName">topOccurrences</span>&#8203;(<span class="arguments">int&nbsp;count)</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="simpleTagLabel">Since:</span></dt>
<dd>8.0</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="bottomOccurrences(int)">bottomOccurrences</a></h3>
<div class="memberSignature"><span class="returnType"><a href="../../list/ListIterable.html" title="interface in org.eclipse.collections.api.list">ListIterable</a>&lt;<a href="../../tuple/primitive/IntIntPair.html" title="interface in org.eclipse.collections.api.tuple.primitive">IntIntPair</a>&gt;</span>&nbsp;<span class="memberName">bottomOccurrences</span>&#8203;(<span class="arguments">int&nbsp;count)</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="simpleTagLabel">Since:</span></dt>
<dd>8.0</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="occurrencesOf(int)">occurrencesOf</a></h3>
<div class="memberSignature"><span class="returnType">int</span>&nbsp;<span class="memberName">occurrencesOf</span>&#8203;(<span class="arguments">int&nbsp;item)</span></div>
<div class="block">The occurrences of a distinct item in the bag.</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.IntIntProcedure)">forEachWithOccurrences</a></h3>
<div class="memberSignature"><span class="returnType">void</span>&nbsp;<span class="memberName">forEachWithOccurrences</span>&#8203;(<span class="arguments"><a href="../../block/procedure/primitive/IntIntProcedure.html" title="interface in org.eclipse.collections.api.block.procedure.primitive">IntIntProcedure</a>&nbsp;procedure)</span></div>
<div class="block">For each distinct item, with the number of occurrences, execute the specified procedure.</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="select(org.eclipse.collections.api.block.predicate.primitive.IntPredicate)">select</a></h3>
<div class="memberSignature"><span class="returnType"><a href="IntBag.html" title="interface in org.eclipse.collections.api.bag.primitive">IntBag</a></span>&nbsp;<span class="memberName">select</span>&#8203;(<span class="arguments"><a href="../../block/predicate/primitive/IntPredicate.html" title="interface in org.eclipse.collections.api.block.predicate.primitive">IntPredicate</a>&nbsp;predicate)</span></div>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../IntIterable.html#select(org.eclipse.collections.api.block.predicate.primitive.IntPredicate)">IntIterable</a></code></span></div>
<div class="block">Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../IntIterable.html#select(org.eclipse.collections.api.block.predicate.primitive.IntPredicate)">select</a></code>&nbsp;in interface&nbsp;<code><a href="../../IntIterable.html" title="interface in org.eclipse.collections.api">IntIterable</a></code></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="reject(org.eclipse.collections.api.block.predicate.primitive.IntPredicate)">reject</a></h3>
<div class="memberSignature"><span class="returnType"><a href="IntBag.html" title="interface in org.eclipse.collections.api.bag.primitive">IntBag</a></span>&nbsp;<span class="memberName">reject</span>&#8203;(<span class="arguments"><a href="../../block/predicate/primitive/IntPredicate.html" title="interface in org.eclipse.collections.api.block.predicate.primitive">IntPredicate</a>&nbsp;predicate)</span></div>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../IntIterable.html#reject(org.eclipse.collections.api.block.predicate.primitive.IntPredicate)">IntIterable</a></code></span></div>
<div class="block">Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../IntIterable.html#reject(org.eclipse.collections.api.block.predicate.primitive.IntPredicate)">reject</a></code>&nbsp;in interface&nbsp;<code><a href="../../IntIterable.html" title="interface in org.eclipse.collections.api">IntIterable</a></code></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="collect(org.eclipse.collections.api.block.function.primitive.IntToObjectFunction)">collect</a></h3>
<div class="memberSignature"><span class="typeParameters">&lt;V&gt;</span>&nbsp;<span class="returnType"><a href="../Bag.html" title="interface in org.eclipse.collections.api.bag">Bag</a>&lt;V&gt;</span>&nbsp;<span class="memberName">collect</span>&#8203;(<span class="arguments"><a href="../../block/function/primitive/IntToObjectFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntToObjectFunction</a>&lt;? extends V&gt;&nbsp;function)</span></div>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../IntIterable.html#collect(org.eclipse.collections.api.block.function.primitive.IntToObjectFunction)">IntIterable</a></code></span></div>
<div class="block">Returns a new collection with the results of applying the specified function on each element of the source
collection. This method is also commonly called transform or map.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../IntIterable.html#collect(org.eclipse.collections.api.block.function.primitive.IntToObjectFunction)">collect</a></code>&nbsp;in interface&nbsp;<code><a href="../../IntIterable.html" title="interface in org.eclipse.collections.api">IntIterable</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="returnType">boolean</span>&nbsp;<span class="memberName">equals</span>&#8203;(<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>&nbsp;o)</span></div>
<div class="block">Follows the same general contract as <a href="../Bag.html#equals(java.lang.Object)"><code>Bag.equals(Object)</code></a>.</div>
<dl>
<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>&nbsp;in class&nbsp;<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>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="hashCode()">hashCode</a></h3>
<div class="memberSignature"><span class="returnType">int</span>&nbsp;<span class="memberName">hashCode</span>()</div>
<div class="block">Follows the same general contract as <a href="../Bag.html#hashCode()"><code>Bag.hashCode()</code></a>.</div>
<dl>
<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>&nbsp;in class&nbsp;<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>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="toImmutable()">toImmutable</a></h3>
<div class="memberSignature"><span class="returnType"><a href="ImmutableIntBag.html" title="interface in org.eclipse.collections.api.bag.primitive">ImmutableIntBag</a></span>&nbsp;<span class="memberName">toImmutable</span>()</div>
<div class="block">Returns an immutable copy of this bag. If the bag is immutable, it returns itself.</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="toStringOfItemToCount()">toStringOfItemToCount</a></h3>
<div class="memberSignature"><span class="modifiers">default</span>&nbsp;<span class="returnType"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a></span>&nbsp;<span class="memberName">toStringOfItemToCount</span>()</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>9.2</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/IntBag.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small>Copyright &#169; 2004&#x2013;2020. All rights reserved.</small></p>
</footer>
</div>
</div>
</body>
</html>