blob: afe954f59d40922e8edf607cc942f956561373ad [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>Pair (Apache Calcite API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../jquery/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-migrate-3.0.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Pair (Apache Calcite API)";
}
}
catch(err) {
}
//-->
var data = {"i0":9,"i1":9,"i2":10,"i3":10,"i4":9,"i5":10,"i6":10,"i7":10,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":10,"i15":9,"i16":10,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9};
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 = "../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= 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/Pair.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">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.apache.calcite.util</a></div>
<h2 title="Class Pair" class="title">Class Pair&lt;T1,&#8203;T2&gt;</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.apache.calcite.util.Pair&lt;T1,&#8203;T2&gt;</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T1</code> - Left-hand type</dd>
<dd><code>T2</code> - Right-hand type</dd>
</dl>
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><code>java.io.Serializable</code>, <code>java.lang.Comparable&lt;<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;T1,&#8203;T2&gt;&gt;</code>, <code>java.util.Map.Entry&lt;T1,&#8203;T2&gt;</code></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><code><a href="../interpreter/Interpreter.Edge.html" title="class in org.apache.calcite.interpreter">Interpreter.Edge</a></code>, <code><a href="../sql/util/ReflectiveSqlOperatorTable.CaseInsensitiveKey.html" title="class in org.apache.calcite.sql.util">ReflectiveSqlOperatorTable.CaseInsensitiveKey</a></code>, <code><a href="../sql/util/ReflectiveSqlOperatorTable.CaseSensitiveKey.html" title="class in org.apache.calcite.sql.util">ReflectiveSqlOperatorTable.CaseSensitiveKey</a></code>, <code><a href="../tools/RelBuilder.Field.html" title="class in org.apache.calcite.tools">RelBuilder.Field</a></code>, <code><a href="../sql2rel/RelFieldTrimmer.TrimResult.html" title="class in org.apache.calcite.sql2rel">RelFieldTrimmer.TrimResult</a></code>, <code><a href="../rex/RexFieldCollation.html" title="class in org.apache.calcite.rex">RexFieldCollation</a></code></dd>
</dl>
<hr>
<pre>public class <span class="typeNameLabel">Pair&lt;T1,&#8203;T2&gt;</span>
extends java.lang.Object
implements java.lang.Comparable&lt;<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;T1,&#8203;T2&gt;&gt;, java.util.Map.Entry&lt;T1,&#8203;T2&gt;, java.io.Serializable</pre>
<div class="block">Pair of objects.
<p>Because a pair implements <a href="#equals(java.lang.Object)"><code>equals(Object)</code></a>, <a href="#hashCode()"><code>hashCode()</code></a> and
<a href="#compareTo(org.apache.calcite.util.Pair)"><code>compareTo(Pair)</code></a>, it can be used in any kind of
<code>Collection</code>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../serialized-form.html#org.apache.calcite.util.Pair">Serialized Form</a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Pair.AdjacentIterator.html" title="class in org.apache.calcite.util">Pair.AdjacentIterator</a>&lt;<a href="Pair.AdjacentIterator.html" title="type parameter in Pair.AdjacentIterator">E</a>&gt;</span></code></th>
<td class="colLast">
<div class="block">Iterator that returns consecutive pairs of elements from an underlying
iterator.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Pair.FirstAndIterator.html" title="class in org.apache.calcite.util">Pair.FirstAndIterator</a>&lt;<a href="Pair.FirstAndIterator.html" title="type parameter in Pair.FirstAndIterator">E</a>&gt;</span></code></th>
<td class="colLast">
<div class="block">Iterator that returns the first element of a collection paired with every
other element.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Pair.LeftIterator.html" title="class in org.apache.calcite.util">Pair.LeftIterator</a>&lt;<a href="Pair.LeftIterator.html" title="type parameter in Pair.LeftIterator">L</a>,&#8203;<a href="Pair.LeftIterator.html" title="type parameter in Pair.LeftIterator">R</a>&gt;</span></code></th>
<td class="colLast">
<div class="block">Iterator that returns the left field of each pair.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Pair.MutableZipList.html" title="class in org.apache.calcite.util">Pair.MutableZipList</a>&lt;<a href="Pair.MutableZipList.html" title="type parameter in Pair.MutableZipList">K</a>,&#8203;<a href="Pair.MutableZipList.html" title="type parameter in Pair.MutableZipList">V</a>&gt;</span></code></th>
<td class="colLast">
<div class="block">A mutable list of pairs backed by a pair of mutable lists.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Pair.RightIterator.html" title="class in org.apache.calcite.util">Pair.RightIterator</a>&lt;<a href="Pair.RightIterator.html" title="type parameter in Pair.RightIterator">L</a>,&#8203;<a href="Pair.RightIterator.html" title="type parameter in Pair.RightIterator">R</a>&gt;</span></code></th>
<td class="colLast">
<div class="block">Iterator that returns the right field of each pair.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Pair.ZipIterator.html" title="class in org.apache.calcite.util">Pair.ZipIterator</a>&lt;<a href="Pair.ZipIterator.html" title="type parameter in Pair.ZipIterator">L</a>,&#8203;<a href="Pair.ZipIterator.html" title="type parameter in Pair.ZipIterator">R</a>&gt;</span></code></th>
<td class="colLast">
<div class="block">Iterator that pairs elements from two iterators.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Pair.ZipList.html" title="class in org.apache.calcite.util">Pair.ZipList</a>&lt;<a href="Pair.ZipList.html" title="type parameter in Pair.ZipList">K</a>,&#8203;<a href="Pair.ZipList.html" title="type parameter in Pair.ZipList">V</a>&gt;</span></code></th>
<td class="colLast">
<div class="block">Unmodifiable list of pairs, backed by a pair of lists.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- =========== FIELD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="Pair.html" title="type parameter in Pair">T1</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#left">left</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="Pair.html" title="type parameter in Pair">T2</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#right">right</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(T1,T2)">Pair</a></span>&#8203;(<a href="Pair.html" title="type parameter in Pair">T1</a>&nbsp;left,
<a href="Pair.html" title="type parameter in Pair">T2</a>&nbsp;right)</code></th>
<td class="colLast">
<div class="block">Creates a Pair.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<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>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;java.lang.Iterable&lt;<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;T,&#8203;T&gt;&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#adjacents(java.lang.Iterable)">adjacents</a></span>&#8203;(java.lang.Iterable&lt;T&gt;&nbsp;iterable)</code></th>
<td class="colLast">
<div class="block">Returns an iterator that iterates over (i, i + 1) pairs in an iterable.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>private static &lt;C extends java.lang.Comparable&lt;C&gt;&gt;<br>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#compare(C,C)">compare</a></span>&#8203;(C&nbsp;c1,
C&nbsp;c2)</code></th>
<td class="colLast">
<div class="block">Compares a pair of comparable values of the same type.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#compareTo(org.apache.calcite.util.Pair)">compareTo</a></span>&#8203;(<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;<a href="Pair.html" title="type parameter in Pair">T1</a>,&#8203;<a href="Pair.html" title="type parameter in Pair">T2</a>&gt;&nbsp;that)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<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;(java.lang.Object&nbsp;obj)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;java.lang.Iterable&lt;<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;T,&#8203;T&gt;&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#firstAnd(java.lang.Iterable)">firstAnd</a></span>&#8203;(java.lang.Iterable&lt;T&gt;&nbsp;iterable)</code></th>
<td class="colLast">
<div class="block">Returns an iterator that iterates over (0, i) pairs in an iterable for
i &gt; 0.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="Pair.html" title="type parameter in Pair">T1</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getKey()">getKey</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="Pair.html" title="type parameter in Pair">T2</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getValue()">getValue</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hashCode()">hashCode</a></span>()</code></th>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static &lt;L,&#8203;R&gt;<br>java.lang.Iterable&lt;L&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#left(java.lang.Iterable)">left</a></span>&#8203;(java.lang.Iterable&lt;? extends java.util.Map.Entry&lt;L,&#8203;R&gt;&gt;&nbsp;iterable)</code></th>
<td class="colLast">
<div class="block">Returns an iterable over the left slice of an iterable.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static &lt;K,&#8203;V&gt;<br>java.util.List&lt;K&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#left(java.util.List)">left</a></span>&#8203;(java.util.List&lt;? extends java.util.Map.Entry&lt;K,&#8203;V&gt;&gt;&nbsp;pairs)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static &lt;K,&#8203;V&gt;<br><a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;K,&#8203;V&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#of(java.util.Map.Entry)">of</a></span>&#8203;(java.util.Map.Entry&lt;K,&#8203;V&gt;&nbsp;entry)</code></th>
<td class="colLast">
<div class="block">Creates a <code>Pair</code> from a <code>Map.Entry</code>.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static &lt;T1,&#8203;T2&gt;<br><a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;T1,&#8203;T2&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#of(T1,T2)">of</a></span>&#8203;(T1&nbsp;left,
T2&nbsp;right)</code></th>
<td class="colLast">
<div class="block">Creates a Pair of appropriate type.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static &lt;L,&#8203;R&gt;<br>java.lang.Iterable&lt;R&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#right(java.lang.Iterable)">right</a></span>&#8203;(java.lang.Iterable&lt;? extends java.util.Map.Entry&lt;L,&#8203;R&gt;&gt;&nbsp;iterable)</code></th>
<td class="colLast">
<div class="block">Returns an iterable over the right slice of an iterable.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>static &lt;K,&#8203;V&gt;<br>java.util.List&lt;V&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#right(java.util.List)">right</a></span>&#8203;(java.util.List&lt;? extends java.util.Map.Entry&lt;K,&#8203;V&gt;&gt;&nbsp;pairs)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code><a href="Pair.html" title="type parameter in Pair">T2</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setValue(T2)">setValue</a></span>&#8203;(<a href="Pair.html" title="type parameter in Pair">T2</a>&nbsp;value)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>static &lt;K,&#8203;V&gt;<br>java.util.Map&lt;K,&#8203;V&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toMap(java.lang.Iterable)">toMap</a></span>&#8203;(java.lang.Iterable&lt;<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;K,&#8203;V&gt;&gt;&nbsp;pairs)</code></th>
<td class="colLast">
<div class="block">Converts a collection of Pairs into a Map.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toString()">toString</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>static &lt;K,&#8203;V&gt;<br>java.lang.Iterable&lt;<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;K,&#8203;V&gt;&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#zip(java.lang.Iterable,java.lang.Iterable)">zip</a></span>&#8203;(java.lang.Iterable&lt;? extends K&gt;&nbsp;ks,
java.lang.Iterable&lt;? extends V&gt;&nbsp;vs)</code></th>
<td class="colLast">
<div class="block">Converts two iterables into an iterable of <a href="Pair.html" title="class in org.apache.calcite.util"><code>Pair</code></a>s.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>static &lt;K,&#8203;V&gt;<br>java.util.List&lt;<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;K,&#8203;V&gt;&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#zip(java.util.List,java.util.List)">zip</a></span>&#8203;(java.util.List&lt;K&gt;&nbsp;ks,
java.util.List&lt;V&gt;&nbsp;vs)</code></th>
<td class="colLast">
<div class="block">Converts two lists into a list of <a href="Pair.html" title="class in org.apache.calcite.util"><code>Pair</code></a>s,
whose length is the lesser of the lengths of the
source lists.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>static &lt;K,&#8203;V&gt;<br>java.util.List&lt;<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;K,&#8203;V&gt;&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#zip(java.util.List,java.util.List,boolean)">zip</a></span>&#8203;(java.util.List&lt;K&gt;&nbsp;ks,
java.util.List&lt;V&gt;&nbsp;vs,
boolean&nbsp;strict)</code></th>
<td class="colLast">
<div class="block">Converts two lists into a list of <a href="Pair.html" title="class in org.apache.calcite.util"><code>Pair</code></a>s.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>static &lt;K,&#8203;V&gt;<br>java.util.List&lt;<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;K,&#8203;V&gt;&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#zip(K%5B%5D,V%5B%5D)">zip</a></span>&#8203;(K[]&nbsp;ks,
V[]&nbsp;vs)</code></th>
<td class="colLast">
<div class="block">Converts two arrays into a list of <a href="Pair.html" title="class in org.apache.calcite.util"><code>Pair</code></a>s.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>static &lt;K,&#8203;V&gt;<br>java.util.List&lt;<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;K,&#8203;V&gt;&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#zipMutable(java.util.List,java.util.List)">zipMutable</a></span>&#8203;(java.util.List&lt;K&gt;&nbsp;ks,
java.util.List&lt;V&gt;&nbsp;vs)</code></th>
<td class="colLast">
<div class="block">Returns a mutable list of pairs backed by a pair of mutable lists.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a id="left">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>left</h4>
<pre>public final&nbsp;<a href="Pair.html" title="type parameter in Pair">T1</a> left</pre>
</li>
</ul>
<a id="right">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>right</h4>
<pre>public final&nbsp;<a href="Pair.html" title="type parameter in Pair">T2</a> right</pre>
</li>
</ul>
</li>
</ul>
</section>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a id="&lt;init&gt;(java.lang.Object,java.lang.Object)">
<!-- -->
</a><a id="&lt;init&gt;(T1,T2)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Pair</h4>
<pre>public&nbsp;Pair&#8203;(<a href="Pair.html" title="type parameter in Pair">T1</a>&nbsp;left,
<a href="Pair.html" title="type parameter in Pair">T2</a>&nbsp;right)</pre>
<div class="block">Creates a Pair.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>left</code> - left value</dd>
<dd><code>right</code> - right value</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="of(java.lang.Object,java.lang.Object)">
<!-- -->
</a><a id="of(T1,T2)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>of</h4>
<pre class="methodSignature">public static&nbsp;&lt;T1,&#8203;T2&gt;&nbsp;<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;T1,&#8203;T2&gt;&nbsp;of&#8203;(T1&nbsp;left,
T2&nbsp;right)</pre>
<div class="block">Creates a Pair of appropriate type.
<p>This is a shorthand that allows you to omit implicit types. For
example, you can write:
<blockquote>return Pair.of(s, n);</blockquote>
instead of
<blockquote>return new Pair&lt;String, Integer&gt;(s, n);</blockquote></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>left</code> - left value</dd>
<dd><code>right</code> - right value</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A Pair</dd>
</dl>
</li>
</ul>
<a id="of(java.util.Map.Entry)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>of</h4>
<pre class="methodSignature">public static&nbsp;&lt;K,&#8203;V&gt;&nbsp;<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;K,&#8203;V&gt;&nbsp;of&#8203;(java.util.Map.Entry&lt;K,&#8203;V&gt;&nbsp;entry)</pre>
<div class="block">Creates a <code>Pair</code> from a <code>Map.Entry</code>.</div>
</li>
</ul>
<a id="equals(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre class="methodSignature">public&nbsp;boolean&nbsp;equals&#8203;(java.lang.Object&nbsp;obj)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>equals</code>&nbsp;in interface&nbsp;<code>java.util.Map.Entry&lt;<a href="Pair.html" title="type parameter in Pair">T1</a>,&#8203;<a href="Pair.html" title="type parameter in Pair">T2</a>&gt;</code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>equals</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a id="hashCode()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hashCode</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;hashCode()</pre>
<div class="block">
<p>Computes hash code consistent with
<code>Map.Entry.hashCode()</code>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>hashCode</code>&nbsp;in interface&nbsp;<code>java.util.Map.Entry&lt;<a href="Pair.html" title="type parameter in Pair">T1</a>,&#8203;<a href="Pair.html" title="type parameter in Pair">T2</a>&gt;</code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>hashCode</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a id="compareTo(org.apache.calcite.util.Pair)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareTo</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;compareTo&#8203;(@Nonnull
<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;<a href="Pair.html" title="type parameter in Pair">T1</a>,&#8203;<a href="Pair.html" title="type parameter in Pair">T2</a>&gt;&nbsp;that)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>compareTo</code>&nbsp;in interface&nbsp;<code>java.lang.Comparable&lt;<a href="Pair.html" title="type parameter in Pair">T1</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a id="toString()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre class="methodSignature">public&nbsp;java.lang.String&nbsp;toString()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a id="getKey()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKey</h4>
<pre class="methodSignature">public&nbsp;<a href="Pair.html" title="type parameter in Pair">T1</a>&nbsp;getKey()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getKey</code>&nbsp;in interface&nbsp;<code>java.util.Map.Entry&lt;<a href="Pair.html" title="type parameter in Pair">T1</a>,&#8203;<a href="Pair.html" title="type parameter in Pair">T2</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a id="getValue()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValue</h4>
<pre class="methodSignature">public&nbsp;<a href="Pair.html" title="type parameter in Pair">T2</a>&nbsp;getValue()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getValue</code>&nbsp;in interface&nbsp;<code>java.util.Map.Entry&lt;<a href="Pair.html" title="type parameter in Pair">T1</a>,&#8203;<a href="Pair.html" title="type parameter in Pair">T2</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a id="setValue(java.lang.Object)">
<!-- -->
</a><a id="setValue(T2)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setValue</h4>
<pre class="methodSignature">public&nbsp;<a href="Pair.html" title="type parameter in Pair">T2</a>&nbsp;setValue&#8203;(<a href="Pair.html" title="type parameter in Pair">T2</a>&nbsp;value)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>setValue</code>&nbsp;in interface&nbsp;<code>java.util.Map.Entry&lt;<a href="Pair.html" title="type parameter in Pair">T1</a>,&#8203;<a href="Pair.html" title="type parameter in Pair">T2</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a id="compare(java.lang.Comparable,java.lang.Comparable)">
<!-- -->
</a><a id="compare(C,C)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compare</h4>
<pre class="methodSignature">private static&nbsp;&lt;C extends java.lang.Comparable&lt;C&gt;&gt;&nbsp;int&nbsp;compare&#8203;(C&nbsp;c1,
C&nbsp;c2)</pre>
<div class="block">Compares a pair of comparable values of the same type. Null collates
less than everything else, but equal to itself.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>c1</code> - First value</dd>
<dd><code>c2</code> - Second value</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a negative integer, zero, or a positive integer if c1
is less than, equal to, or greater than c2.</dd>
</dl>
</li>
</ul>
<a id="toMap(java.lang.Iterable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toMap</h4>
<pre class="methodSignature">public static&nbsp;&lt;K,&#8203;V&gt;&nbsp;java.util.Map&lt;K,&#8203;V&gt;&nbsp;toMap&#8203;(java.lang.Iterable&lt;<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;K,&#8203;V&gt;&gt;&nbsp;pairs)</pre>
<div class="block">Converts a collection of Pairs into a Map.
<p>This is an obvious thing to do because Pair is similar in structure to
<code>Map.Entry</code>.
<p>The map contains a copy of the collection of Pairs; if you change the
collection, the map does not change.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pairs</code> - Collection of Pair objects</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>map with the same contents as the collection</dd>
</dl>
</li>
</ul>
<a id="zip(java.util.List,java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>zip</h4>
<pre class="methodSignature">public static&nbsp;&lt;K,&#8203;V&gt;&nbsp;java.util.List&lt;<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;K,&#8203;V&gt;&gt;&nbsp;zip&#8203;(java.util.List&lt;K&gt;&nbsp;ks,
java.util.List&lt;V&gt;&nbsp;vs)</pre>
<div class="block">Converts two lists into a list of <a href="Pair.html" title="class in org.apache.calcite.util"><code>Pair</code></a>s,
whose length is the lesser of the lengths of the
source lists.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ks</code> - Left list</dd>
<dd><code>vs</code> - Right list</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>List of pairs</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../linq4j/Ord.html#zip(java.util.List)"><code>Ord.zip(java.util.List)</code></a></dd>
</dl>
</li>
</ul>
<a id="zip(java.util.List,java.util.List,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>zip</h4>
<pre class="methodSignature">public static&nbsp;&lt;K,&#8203;V&gt;&nbsp;java.util.List&lt;<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;K,&#8203;V&gt;&gt;&nbsp;zip&#8203;(java.util.List&lt;K&gt;&nbsp;ks,
java.util.List&lt;V&gt;&nbsp;vs,
boolean&nbsp;strict)</pre>
<div class="block">Converts two lists into a list of <a href="Pair.html" title="class in org.apache.calcite.util"><code>Pair</code></a>s.
<p>The length of the combined list is the lesser of the lengths of the
source lists. But typically the source lists will be the same length.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ks</code> - Left list</dd>
<dd><code>vs</code> - Right list</dd>
<dd><code>strict</code> - Whether to fail if lists have different size</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>List of pairs</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../linq4j/Ord.html#zip(java.util.List)"><code>Ord.zip(java.util.List)</code></a></dd>
</dl>
</li>
</ul>
<a id="zip(java.lang.Iterable,java.lang.Iterable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>zip</h4>
<pre class="methodSignature">public static&nbsp;&lt;K,&#8203;V&gt;&nbsp;java.lang.Iterable&lt;<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;K,&#8203;V&gt;&gt;&nbsp;zip&#8203;(java.lang.Iterable&lt;? extends K&gt;&nbsp;ks,
java.lang.Iterable&lt;? extends V&gt;&nbsp;vs)</pre>
<div class="block">Converts two iterables into an iterable of <a href="Pair.html" title="class in org.apache.calcite.util"><code>Pair</code></a>s.
<p>The resulting iterator ends whenever the first of the input iterators
ends. But typically the source iterators will be the same length.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ks</code> - Left iterable</dd>
<dd><code>vs</code> - Right iterable</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Iterable over pairs</dd>
</dl>
</li>
</ul>
<a id="zip(java.lang.Object[],java.lang.Object[])">
<!-- -->
</a><a id="zip(K[],V[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>zip</h4>
<pre class="methodSignature">public static&nbsp;&lt;K,&#8203;V&gt;&nbsp;java.util.List&lt;<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;K,&#8203;V&gt;&gt;&nbsp;zip&#8203;(K[]&nbsp;ks,
V[]&nbsp;vs)</pre>
<div class="block">Converts two arrays into a list of <a href="Pair.html" title="class in org.apache.calcite.util"><code>Pair</code></a>s.
<p>The length of the combined list is the lesser of the lengths of the
source arrays. But typically the source arrays will be the same
length.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ks</code> - Left array</dd>
<dd><code>vs</code> - Right array</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>List of pairs</dd>
</dl>
</li>
</ul>
<a id="zipMutable(java.util.List,java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>zipMutable</h4>
<pre class="methodSignature">public static&nbsp;&lt;K,&#8203;V&gt;&nbsp;java.util.List&lt;<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;K,&#8203;V&gt;&gt;&nbsp;zipMutable&#8203;(java.util.List&lt;K&gt;&nbsp;ks,
java.util.List&lt;V&gt;&nbsp;vs)</pre>
<div class="block">Returns a mutable list of pairs backed by a pair of mutable lists.
<p>Modifications to this list are reflected in the backing lists, and vice
versa.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>K</code> - Key (left) value type</dd>
<dd><code>V</code> - Value (right) value type</dd>
</dl>
</li>
</ul>
<a id="left(java.lang.Iterable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>left</h4>
<pre class="methodSignature">public static&nbsp;&lt;L,&#8203;R&gt;&nbsp;java.lang.Iterable&lt;L&gt;&nbsp;left&#8203;(java.lang.Iterable&lt;? extends java.util.Map.Entry&lt;L,&#8203;R&gt;&gt;&nbsp;iterable)</pre>
<div class="block">Returns an iterable over the left slice of an iterable.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>L</code> - Left type</dd>
<dd><code>R</code> - Right type</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>iterable</code> - Iterable over pairs</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Iterable over the left elements</dd>
</dl>
</li>
</ul>
<a id="right(java.lang.Iterable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>right</h4>
<pre class="methodSignature">public static&nbsp;&lt;L,&#8203;R&gt;&nbsp;java.lang.Iterable&lt;R&gt;&nbsp;right&#8203;(java.lang.Iterable&lt;? extends java.util.Map.Entry&lt;L,&#8203;R&gt;&gt;&nbsp;iterable)</pre>
<div class="block">Returns an iterable over the right slice of an iterable.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>L</code> - right type</dd>
<dd><code>R</code> - Right type</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>iterable</code> - Iterable over pairs</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Iterable over the right elements</dd>
</dl>
</li>
</ul>
<a id="left(java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>left</h4>
<pre class="methodSignature">public static&nbsp;&lt;K,&#8203;V&gt;&nbsp;java.util.List&lt;K&gt;&nbsp;left&#8203;(java.util.List&lt;? extends java.util.Map.Entry&lt;K,&#8203;V&gt;&gt;&nbsp;pairs)</pre>
</li>
</ul>
<a id="right(java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>right</h4>
<pre class="methodSignature">public static&nbsp;&lt;K,&#8203;V&gt;&nbsp;java.util.List&lt;V&gt;&nbsp;right&#8203;(java.util.List&lt;? extends java.util.Map.Entry&lt;K,&#8203;V&gt;&gt;&nbsp;pairs)</pre>
</li>
</ul>
<a id="adjacents(java.lang.Iterable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>adjacents</h4>
<pre class="methodSignature">public static&nbsp;&lt;T&gt;&nbsp;java.lang.Iterable&lt;<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;T,&#8203;T&gt;&gt;&nbsp;adjacents&#8203;(java.lang.Iterable&lt;T&gt;&nbsp;iterable)</pre>
<div class="block">Returns an iterator that iterates over (i, i + 1) pairs in an iterable.
<p>For example, <code>adjacents([3, 5, 7])</code> returns [(3, 5), (5, 7)].</p></div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - Element type</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>iterable</code> - Source collection</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Iterable over adjacent element pairs</dd>
</dl>
</li>
</ul>
<a id="firstAnd(java.lang.Iterable)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>firstAnd</h4>
<pre class="methodSignature">public static&nbsp;&lt;T&gt;&nbsp;java.lang.Iterable&lt;<a href="Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;T,&#8203;T&gt;&gt;&nbsp;firstAnd&#8203;(java.lang.Iterable&lt;T&gt;&nbsp;iterable)</pre>
<div class="block">Returns an iterator that iterates over (0, i) pairs in an iterable for
i &gt; 0.
<p>For example, <code>firstAnd([3, 5, 7])</code> returns [(3, 5), (3, 7)].</p></div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - Element type</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>iterable</code> - Source collection</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Iterable over pairs of the first element and all other elements</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<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/Pair.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">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small>Copyright &#169; 2012&#x2013;2019 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</footer>
</body>
</html>