blob: cd99ae478fed1f4685e41cdfbd82c77115cffa7b [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (14.0.2) on Sat Aug 08 22:45:01 CDT 2020 -->
<title>AbstractImmutableMultimap (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.multimap, class: AbstractImmutableMultimap">
<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};
var tabs = {65535:["t0","All 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/AbstractImmutableMultimap.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<div class="navListSearch"><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="skipNav"><a id="skip.navbar.top">
<!-- -->
</a></div>
</nav>
</header>
<div class="flexContent">
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.eclipse.collections.impl.multimap</a></div>
<h1 title="Class AbstractImmutableMultimap" class="title">Class AbstractImmutableMultimap&lt;K,&#8203;V,&#8203;C extends <a href="../../api/collection/ImmutableCollection.html" title="interface in org.eclipse.collections.api.collection">ImmutableCollection</a>&lt;V&gt;&gt;</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="AbstractMultimap.html" title="class in org.eclipse.collections.impl.multimap">org.eclipse.collections.impl.multimap.AbstractMultimap</a>&lt;K,&#8203;V,&#8203;C&gt;
<div class="inheritance">org.eclipse.collections.impl.multimap.AbstractImmutableMultimap&lt;K,&#8203;V,&#8203;C&gt;</div>
</div>
</div>
<section class="description">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><code><a href="../../api/multimap/ImmutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">ImmutableMultimap</a>&lt;K,&#8203;V&gt;</code>, <code><a href="../../api/multimap/Multimap.html" title="interface in org.eclipse.collections.api.multimap">Multimap</a>&lt;K,&#8203;V&gt;</code></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><code><a href="bag/ImmutableBagMultimapImpl.html" title="class in org.eclipse.collections.impl.multimap.bag">ImmutableBagMultimapImpl</a></code>, <code><a href="list/ImmutableListMultimapImpl.html" title="class in org.eclipse.collections.impl.multimap.list">ImmutableListMultimapImpl</a></code>, <code><a href="set/ImmutableSetMultimapImpl.html" title="class in org.eclipse.collections.impl.multimap.set">ImmutableSetMultimapImpl</a></code>, <code><a href="bag/sorted/immutable/ImmutableSortedBagMultimapImpl.html" title="class in org.eclipse.collections.impl.multimap.bag.sorted.immutable">ImmutableSortedBagMultimapImpl</a></code>, <code><a href="set/sorted/ImmutableSortedSetMultimapImpl.html" title="class in org.eclipse.collections.impl.multimap.set.sorted">ImmutableSortedSetMultimapImpl</a></code></dd>
</dl>
<hr>
<pre>public abstract class <span class="typeNameLabel">AbstractImmutableMultimap&lt;K,&#8203;V,&#8203;C extends <a href="../../api/collection/ImmutableCollection.html" title="interface in org.eclipse.collections.api.collection">ImmutableCollection</a>&lt;V&gt;&gt;</span>
extends <a href="AbstractMultimap.html" title="class in org.eclipse.collections.impl.multimap">AbstractMultimap</a>&lt;K,&#8203;V,&#8203;C&gt;
implements <a href="../../api/multimap/ImmutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">ImmutableMultimap</a>&lt;K,&#8203;V&gt;</pre>
</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="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><a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">C</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#get(K)">get</a></span>&#8203;(<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">K</a>&nbsp;key)</code></th>
<td class="colLast">
<div class="block">Returns a view of all values associated with the given key.</div>
</td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isEmpty()">isEmpty</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns <code>true</code> if there are no entries.</div>
</td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code><a href="../../api/set/SetIterable.html" title="interface in org.eclipse.collections.api.set">SetIterable</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">K</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#keySet()">keySet</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns a unmodifiable <a href="../../api/set/SetIterable.html" title="interface in org.eclipse.collections.api.set"><code>SetIterable</code></a> of keys with O(1) complexity.</div>
</td>
</tr>
<tr class="rowColor" id="i3">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#size()">size</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the number of key-value entry pairs.</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="#sizeDistinct()">sizeDistinct</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the number of distinct keys.</div>
</td>
</tr>
<tr class="rowColor" id="i5">
<td class="colFirst"><code><a href="../../api/multimap/ImmutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">ImmutableMultimap</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">K</a>,&#8203;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">V</a>&gt;</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 Multimap <em>if it is not already immutable</em>.</div>
</td>
</tr>
<tr class="altColor" id="i6">
<td class="colFirst"><code><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">K</a>,&#8203;<a href="../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">V</a>&gt;&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toMap()">toMap</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns a new <a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map"><code>MutableMap</code></a> of keys from this Multimap to the mapped values as a <a href="../../api/RichIterable.html" title="interface in org.eclipse.collections.api"><code>RichIterable</code></a>.</div>
</td>
</tr>
<tr class="rowColor" id="i7">
<td class="colFirst"><code>&lt;R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">V</a>&gt;&gt;<br><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">K</a>,&#8203;R&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toMap(org.eclipse.collections.api.block.function.Function0)">toMap</a></span>&#8203;(<a href="../../api/block/function/Function0.html" title="interface in org.eclipse.collections.api.block.function">Function0</a>&lt;R&gt;&nbsp;collectionFactory)</code></th>
<td class="colLast">
<div class="block">Returns a new <a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map"><code>MutableMap</code></a> of keys from this Multimap to the mapped values as a <a href="../../api/RichIterable.html" title="interface in org.eclipse.collections.api"><code>RichIterable</code></a>.</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="inheritedList">
<h3>Methods inherited from class&nbsp;org.eclipse.collections.impl.multimap.<a href="AbstractMultimap.html" title="class in org.eclipse.collections.impl.multimap">AbstractMultimap</a></h3>
<a id="methods.inherited.from.class.org.eclipse.collections.impl.multimap.AbstractMultimap">
<!-- -->
</a><code><a href="AbstractMultimap.html#collectKeyMultiValues(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)">collectKeyMultiValues</a>, <a href="AbstractMultimap.html#collectKeysValues(org.eclipse.collections.api.block.function.Function2,R)">collectKeysValues</a>, <a href="AbstractMultimap.html#collectValues(org.eclipse.collections.api.block.function.Function,R)">collectValues</a>, <a href="AbstractMultimap.html#containsKey(java.lang.Object)">containsKey</a>, <a href="AbstractMultimap.html#containsKeyAndValue(java.lang.Object,java.lang.Object)">containsKeyAndValue</a>, <a href="AbstractMultimap.html#containsValue(java.lang.Object)">containsValue</a>, <a href="AbstractMultimap.html#equals(java.lang.Object)">equals</a>, <a href="AbstractMultimap.html#forEachKey(org.eclipse.collections.api.block.procedure.Procedure)">forEachKey</a>, <a href="AbstractMultimap.html#forEachKeyMultiValues(org.eclipse.collections.api.block.procedure.Procedure2)">forEachKeyMultiValues</a>, <a href="AbstractMultimap.html#forEachKeyValue(org.eclipse.collections.api.block.procedure.Procedure2)">forEachKeyValue</a>, <a href="AbstractMultimap.html#forEachValue(org.eclipse.collections.api.block.procedure.Procedure)">forEachValue</a>, <a href="AbstractMultimap.html#hashCode()">hashCode</a>, <a href="AbstractMultimap.html#keyBag()">keyBag</a>, <a href="AbstractMultimap.html#keyMultiValuePairsView()">keyMultiValuePairsView</a>, <a href="AbstractMultimap.html#keysView()">keysView</a>, <a href="AbstractMultimap.html#keyValuePairsView()">keyValuePairsView</a>, <a href="AbstractMultimap.html#multiValuesView()">multiValuesView</a>, <a href="AbstractMultimap.html#notEmpty()">notEmpty</a>, <a href="AbstractMultimap.html#rejectKeysMultiValues(org.eclipse.collections.api.block.predicate.Predicate2,R)">rejectKeysMultiValues</a>, <a href="AbstractMultimap.html#rejectKeysValues(org.eclipse.collections.api.block.predicate.Predicate2,R)">rejectKeysValues</a>, <a href="AbstractMultimap.html#selectKeysMultiValues(org.eclipse.collections.api.block.predicate.Predicate2,R)">selectKeysMultiValues</a>, <a href="AbstractMultimap.html#selectKeysValues(org.eclipse.collections.api.block.predicate.Predicate2,R)">selectKeysValues</a>, <a href="AbstractMultimap.html#toString()">toString</a>, <a href="AbstractMultimap.html#valuesView()">valuesView</a></code></div>
<div class="inheritedList">
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></h3>
<a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#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&nbsp;org.eclipse.collections.api.multimap.<a href="../../api/multimap/ImmutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">ImmutableMultimap</a></h3>
<a id="methods.inherited.from.class.org.eclipse.collections.api.multimap.ImmutableMultimap">
<!-- -->
</a><code><a href="../../api/multimap/ImmutableMultimap.html#collectKeyMultiValues(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">collectKeyMultiValues</a>, <a href="../../api/multimap/ImmutableMultimap.html#collectKeysValues(org.eclipse.collections.api.block.function.Function2)">collectKeysValues</a>, <a href="../../api/multimap/ImmutableMultimap.html#collectValues(org.eclipse.collections.api.block.function.Function)">collectValues</a>, <a href="../../api/multimap/ImmutableMultimap.html#flip()">flip</a>, <a href="../../api/multimap/ImmutableMultimap.html#newEmpty()">newEmpty</a>, <a href="../../api/multimap/ImmutableMultimap.html#newWith(K,V)">newWith</a>, <a href="../../api/multimap/ImmutableMultimap.html#newWithAll(K,java.lang.Iterable)">newWithAll</a>, <a href="../../api/multimap/ImmutableMultimap.html#newWithout(java.lang.Object,java.lang.Object)">newWithout</a>, <a href="../../api/multimap/ImmutableMultimap.html#newWithoutAll(java.lang.Object)">newWithoutAll</a>, <a href="../../api/multimap/ImmutableMultimap.html#rejectKeysMultiValues(org.eclipse.collections.api.block.predicate.Predicate2)">rejectKeysMultiValues</a>, <a href="../../api/multimap/ImmutableMultimap.html#rejectKeysValues(org.eclipse.collections.api.block.predicate.Predicate2)">rejectKeysValues</a>, <a href="../../api/multimap/ImmutableMultimap.html#selectKeysMultiValues(org.eclipse.collections.api.block.predicate.Predicate2)">selectKeysMultiValues</a>, <a href="../../api/multimap/ImmutableMultimap.html#selectKeysValues(org.eclipse.collections.api.block.predicate.Predicate2)">selectKeysValues</a></code></div>
<div class="inheritedList">
<h3>Methods inherited from interface&nbsp;org.eclipse.collections.api.multimap.<a href="../../api/multimap/Multimap.html" title="interface in org.eclipse.collections.api.multimap">Multimap</a></h3>
<a id="methods.inherited.from.class.org.eclipse.collections.api.multimap.Multimap">
<!-- -->
</a><code><a href="../../api/multimap/Multimap.html#collectKeyMultiValues(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,R)">collectKeyMultiValues</a>, <a href="../../api/multimap/Multimap.html#collectKeysValues(org.eclipse.collections.api.block.function.Function2,R)">collectKeysValues</a>, <a href="../../api/multimap/Multimap.html#collectValues(org.eclipse.collections.api.block.function.Function,R)">collectValues</a>, <a href="../../api/multimap/Multimap.html#containsKey(java.lang.Object)">containsKey</a>, <a href="../../api/multimap/Multimap.html#containsKeyAndValue(java.lang.Object,java.lang.Object)">containsKeyAndValue</a>, <a href="../../api/multimap/Multimap.html#containsValue(java.lang.Object)">containsValue</a>, <a href="../../api/multimap/Multimap.html#equals(java.lang.Object)">equals</a>, <a href="../../api/multimap/Multimap.html#forEachKey(org.eclipse.collections.api.block.procedure.Procedure)">forEachKey</a>, <a href="../../api/multimap/Multimap.html#forEachKeyMultiValues(org.eclipse.collections.api.block.procedure.Procedure2)">forEachKeyMultiValues</a>, <a href="../../api/multimap/Multimap.html#forEachKeyValue(org.eclipse.collections.api.block.procedure.Procedure2)">forEachKeyValue</a>, <a href="../../api/multimap/Multimap.html#forEachValue(org.eclipse.collections.api.block.procedure.Procedure)">forEachValue</a>, <a href="../../api/multimap/Multimap.html#hashCode()">hashCode</a>, <a href="../../api/multimap/Multimap.html#keyBag()">keyBag</a>, <a href="../../api/multimap/Multimap.html#keyMultiValuePairsView()">keyMultiValuePairsView</a>, <a href="../../api/multimap/Multimap.html#keysView()">keysView</a>, <a href="../../api/multimap/Multimap.html#keyValuePairsView()">keyValuePairsView</a>, <a href="../../api/multimap/Multimap.html#multiValuesView()">multiValuesView</a>, <a href="../../api/multimap/Multimap.html#notEmpty()">notEmpty</a>, <a href="../../api/multimap/Multimap.html#rejectKeysMultiValues(org.eclipse.collections.api.block.predicate.Predicate2,R)">rejectKeysMultiValues</a>, <a href="../../api/multimap/Multimap.html#rejectKeysValues(org.eclipse.collections.api.block.predicate.Predicate2,R)">rejectKeysValues</a>, <a href="../../api/multimap/Multimap.html#selectKeysMultiValues(org.eclipse.collections.api.block.predicate.Predicate2,R)">selectKeysMultiValues</a>, <a href="../../api/multimap/Multimap.html#selectKeysValues(org.eclipse.collections.api.block.predicate.Predicate2,R)">selectKeysValues</a>, <a href="../../api/multimap/Multimap.html#toMutable()">toMutable</a>, <a href="../../api/multimap/Multimap.html#valuesView()">valuesView</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="size()">size</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">size</span>()</div>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../api/multimap/Multimap.html#size()">Multimap</a></code></span></div>
<div class="block">Returns the number of key-value entry pairs.
<p>This method is implemented with O(1) (constant-time) performance.</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../api/multimap/Multimap.html#size()">size</a></code>&nbsp;in interface&nbsp;<code><a href="../../api/multimap/Multimap.html" title="interface in org.eclipse.collections.api.multimap">Multimap</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">K</a>,&#8203;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">V</a>&gt;</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>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">sizeDistinct</span>()</div>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../api/multimap/Multimap.html#sizeDistinct()">Multimap</a></code></span></div>
<div class="block">Returns the number of distinct keys.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../api/multimap/Multimap.html#sizeDistinct()">sizeDistinct</a></code>&nbsp;in interface&nbsp;<code><a href="../../api/multimap/Multimap.html" title="interface in org.eclipse.collections.api.multimap">Multimap</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">K</a>,&#8203;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">V</a>&gt;</code></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="isEmpty()">isEmpty</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">boolean</span>&nbsp;<span class="memberName">isEmpty</span>()</div>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../api/multimap/Multimap.html#isEmpty()">Multimap</a></code></span></div>
<div class="block">Returns <code>true</code> if there are no entries.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../api/multimap/Multimap.html#isEmpty()">isEmpty</a></code>&nbsp;in interface&nbsp;<code><a href="../../api/multimap/Multimap.html" title="interface in org.eclipse.collections.api.multimap">Multimap</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">K</a>,&#8203;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">V</a>&gt;</code></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="keySet()">keySet</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="../../api/set/SetIterable.html" title="interface in org.eclipse.collections.api.set">SetIterable</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">K</a>&gt;</span>&nbsp;<span class="memberName">keySet</span>()</div>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../api/multimap/Multimap.html#keySet()">Multimap</a></code></span></div>
<div class="block">Returns a unmodifiable <a href="../../api/set/SetIterable.html" title="interface in org.eclipse.collections.api.set"><code>SetIterable</code></a> of keys with O(1) complexity.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../api/multimap/Multimap.html#keySet()">keySet</a></code>&nbsp;in interface&nbsp;<code><a href="../../api/multimap/Multimap.html" title="interface in org.eclipse.collections.api.multimap">Multimap</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">K</a>,&#8203;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">V</a>&gt;</code></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="get(java.lang.Object)">
<!-- -->
</a><a id="get(K)">get</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">C</a></span>&nbsp;<span class="memberName">get</span>&#8203;(<span class="arguments"><a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">K</a>&nbsp;key)</span></div>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../api/multimap/Multimap.html#get(K)">Multimap</a></code></span></div>
<div class="block">Returns a view of all values associated with the given key.
<p>If the given key does not exist, an empty <a href="../../api/RichIterable.html" title="interface in org.eclipse.collections.api"><code>RichIterable</code></a> is returned.</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../api/multimap/ImmutableMultimap.html#get(K)">get</a></code>&nbsp;in interface&nbsp;<code><a href="../../api/multimap/ImmutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">ImmutableMultimap</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">K</a>,&#8203;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">V</a>&gt;</code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../api/multimap/Multimap.html#get(K)">get</a></code>&nbsp;in interface&nbsp;<code><a href="../../api/multimap/Multimap.html" title="interface in org.eclipse.collections.api.multimap">Multimap</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">K</a>,&#8203;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">V</a>&gt;</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>key</code> - the key to search for</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="toMap()">toMap</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">K</a>,&#8203;<a href="../../api/RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">V</a>&gt;&gt;</span>&nbsp;<span class="memberName">toMap</span>()</div>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../api/multimap/Multimap.html#toMap()">Multimap</a></code></span></div>
<div class="block">Returns a new <a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map"><code>MutableMap</code></a> of keys from this Multimap to the mapped values as a <a href="../../api/RichIterable.html" title="interface in org.eclipse.collections.api"><code>RichIterable</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../api/multimap/Multimap.html#toMap()">toMap</a></code>&nbsp;in interface&nbsp;<code><a href="../../api/multimap/Multimap.html" title="interface in org.eclipse.collections.api.multimap">Multimap</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">K</a>,&#8203;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">V</a>&gt;</code></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="toMap(org.eclipse.collections.api.block.function.Function0)">toMap</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="typeParameters">&lt;R extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">V</a>&gt;&gt;</span>&nbsp;<span class="returnType"><a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map">MutableMap</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">K</a>,&#8203;R&gt;</span>&nbsp;<span class="memberName">toMap</span>&#8203;(<span class="arguments"><a href="../../api/block/function/Function0.html" title="interface in org.eclipse.collections.api.block.function">Function0</a>&lt;R&gt;&nbsp;collectionFactory)</span></div>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../api/multimap/Multimap.html#toMap(org.eclipse.collections.api.block.function.Function0)">Multimap</a></code></span></div>
<div class="block">Returns a new <a href="../../api/map/MutableMap.html" title="interface in org.eclipse.collections.api.map"><code>MutableMap</code></a> of keys from this Multimap to the mapped values as a <a href="../../api/RichIterable.html" title="interface in org.eclipse.collections.api"><code>RichIterable</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../api/multimap/Multimap.html#toMap(org.eclipse.collections.api.block.function.Function0)">toMap</a></code>&nbsp;in interface&nbsp;<code><a href="../../api/multimap/Multimap.html" title="interface in org.eclipse.collections.api.multimap">Multimap</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">K</a>,&#8203;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">V</a>&gt;</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>collectionFactory</code> - used to create the collections that hold the values and affects the return type</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>&nbsp;<span class="returnType"><a href="../../api/multimap/ImmutableMultimap.html" title="interface in org.eclipse.collections.api.multimap">ImmutableMultimap</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">K</a>,&#8203;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">V</a>&gt;</span>&nbsp;<span class="memberName">toImmutable</span>()</div>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../api/multimap/Multimap.html#toImmutable()">Multimap</a></code></span></div>
<div class="block">Returns an immutable copy of this Multimap <em>if it is not already immutable</em>. If the Multimap is immutable,
it will return itself.
<p> The returned Multimap will be <code>Serializable</code> if this Multimap is <code>Serializable</code>.</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../api/multimap/Multimap.html#toImmutable()">toImmutable</a></code>&nbsp;in interface&nbsp;<code><a href="../../api/multimap/Multimap.html" title="interface in org.eclipse.collections.api.multimap">Multimap</a>&lt;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">K</a>,&#8203;<a href="AbstractImmutableMultimap.html" title="type parameter in AbstractImmutableMultimap">V</a>&gt;</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/AbstractImmutableMultimap.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>