blob: d8cb98ae8118521a4cb2704e344df595663d5354 [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>Comparators (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.block.factory, class: Comparators">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../../script-dir/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../../script-dir/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../../../script-dir/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../../../script-dir/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../../../script-dir/jquery-3.4.1.js"></script>
<script type="text/javascript" src="../../../../../../script-dir/jquery-ui.js"></script>
</head>
<body class="class-declaration">
<script type="text/javascript">var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flexBox">
<header role="banner" class="flexHeader">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Comparators.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.block.factory</a></div>
<h1 title="Class Comparators" class="title">Class Comparators</h1>
</div>
<div class="contentContainer">
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">java.lang.Object</a>
<div class="inheritance">org.eclipse.collections.impl.block.factory.Comparators</div>
</div>
<section class="description">
<hr>
<pre>public final class <span class="typeNameLabel">Comparators</span>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></pre>
</section>
<section class="summary">
<ul class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<li class="blockList">
<section class="methodSummary"><a id="method.summary">
<!-- -->
</a>
<h2>Method Summary</h2>
<div class="memberSummary">
<div role="tablist" aria-orientation="horizontal"><button role="tab" aria-selected="true" aria-controls="memberSummary_tabpanel" tabindex="0" onkeydown="switchTab(event)" id="t0" class="activeTableTab">All Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t1" class="tableTab" onclick="show(1);">Static Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t4" class="tableTab" onclick="show(8);">Concrete Methods</button></div>
<div id="memberSummary_tabpanel" role="tabpanel">
<table aria-labelledby="t0">
<thead>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr class="altColor" id="i0">
<td class="colFirst"><code>static <a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;<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;?&gt;&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ascendingCollectionSizeComparator()">ascendingCollectionSizeComparator</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#byBooleanFunction(org.eclipse.collections.api.block.function.primitive.BooleanFunction)">byBooleanFunction</a></span>&#8203;(<a href="../../../api/block/function/primitive/BooleanFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">BooleanFunction</a>&lt;T&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#byByteFunction(org.eclipse.collections.api.block.function.primitive.ByteFunction)">byByteFunction</a></span>&#8203;(<a href="../../../api/block/function/primitive/ByteFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ByteFunction</a>&lt;T&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i3">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#byCharFunction(org.eclipse.collections.api.block.function.primitive.CharFunction)">byCharFunction</a></span>&#8203;(<a href="../../../api/block/function/primitive/CharFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">CharFunction</a>&lt;T&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i4">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#byDoubleFunction(org.eclipse.collections.api.block.function.primitive.DoubleFunction)">byDoubleFunction</a></span>&#8203;(<a href="../../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a>&lt;T&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i5">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;<a href="../../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a>&lt;T,&#8203;?&gt;&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#byFirstOfPair(java.util.Comparator)">byFirstOfPair</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a>&lt;? super T&gt;&nbsp;comparator)</code></th>
<td class="colLast">
<div class="block">Creates a comparator for pairs by using an existing comparator that only compares the first element of the pair</div>
</td>
</tr>
<tr class="altColor" id="i6">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#byFloatFunction(org.eclipse.collections.api.block.function.primitive.FloatFunction)">byFloatFunction</a></span>&#8203;(<a href="../../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a>&lt;T&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i7">
<td class="colFirst"><code>static &lt;T,&#8203;
V extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a>&lt;? super V&gt;&gt;<br><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#byFunction(org.eclipse.collections.api.block.function.Function)">byFunction</a></span>&#8203;(<a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i8">
<td class="colFirst"><code>static &lt;T,&#8203;
V&gt;&nbsp;<a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#byFunction(org.eclipse.collections.api.block.function.Function,java.util.Comparator)">byFunction</a></span>&#8203;(<a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;function,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a>&lt;V&gt;&nbsp;comparator)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i9">
<td class="colFirst"><code>static &lt;T,&#8203;
V extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a>&lt;? super V&gt;&gt;<br><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#byFunctionNullsFirst(org.eclipse.collections.api.block.function.Function)">byFunctionNullsFirst</a></span>&#8203;(<a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i10">
<td class="colFirst"><code>static &lt;T,&#8203;
V extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a>&lt;? super V&gt;&gt;<br><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#byFunctionNullsLast(org.eclipse.collections.api.block.function.Function)">byFunctionNullsLast</a></span>&#8203;(<a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i11">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#byIntFunction(org.eclipse.collections.api.block.function.primitive.IntFunction)">byIntFunction</a></span>&#8203;(<a href="../../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a>&lt;T&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i12">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#byLongFunction(org.eclipse.collections.api.block.function.primitive.LongFunction)">byLongFunction</a></span>&#8203;(<a href="../../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a>&lt;T&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i13">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;<a href="../../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a>&lt;?,&#8203;T&gt;&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#bySecondOfPair(java.util.Comparator)">bySecondOfPair</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a>&lt;? super T&gt;&nbsp;comparator)</code></th>
<td class="colLast">
<div class="block">Creates a comparator for pairs by using an existing comparator that only compares the second element of the pair</div>
</td>
</tr>
<tr class="altColor" id="i14">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#byShortFunction(org.eclipse.collections.api.block.function.primitive.ShortFunction)">byShortFunction</a></span>&#8203;(<a href="../../../api/block/function/primitive/ShortFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ShortFunction</a>&lt;T&gt;&nbsp;function)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i15">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#chain(java.util.Comparator...)">chain</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a>&lt;T&gt;...&nbsp;comparators)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i16">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#comparableComparator()">comparableComparator</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i17">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a>&lt;? super T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#comparableComparatorIfNull(java.util.Comparator)">comparableComparatorIfNull</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a>&lt;? super T&gt;&nbsp;comparator)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i18">
<td class="colFirst"><code>static <a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;<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;?&gt;&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#descendingCollectionSizeComparator()">descendingCollectionSizeComparator</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i19">
<td class="colFirst"><code>static &lt;T,&#8203;
V extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a>&lt;? super V&gt;&gt;<br><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fromFunctions(org.eclipse.collections.api.block.function.Function)">fromFunctions</a></span>&#8203;(<a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;one)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i20">
<td class="colFirst"><code>static &lt;T,&#8203;
V1 extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a>&lt;? super V1&gt;,&#8203;
V2 extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a>&lt;? super V2&gt;&gt;<br><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fromFunctions(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">fromFunctions</a></span>&#8203;(<a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V1&gt;&nbsp;one,
<a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V2&gt;&nbsp;two)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i21">
<td class="colFirst"><code>static &lt;T,&#8203;
V1 extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a>&lt;? super V1&gt;,&#8203;
V2 extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a>&lt;? super V2&gt;,&#8203;
V3 extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a>&lt;? super V3&gt;&gt;<br><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fromFunctions(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">fromFunctions</a></span>&#8203;(<a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V1&gt;&nbsp;one,
<a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V2&gt;&nbsp;two,
<a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V3&gt;&nbsp;three)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i22">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#naturalOrder()">naturalOrder</a></span>()</code></th>
<td class="colLast">
<div class="block">Uses the natural compareTo methods of the objects which will throw if there are any nulls.</div>
</td>
</tr>
<tr class="rowColor" id="i23">
<td class="colFirst"><code>static &lt;T extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a>&lt;T&gt;&gt;<br>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#nullSafeCompare(T,T)">nullSafeCompare</a></span>&#8203;(T&nbsp;value1,
T&nbsp;value2)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i24">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#nullSafeEquals(java.lang.Object,java.lang.Object)">nullSafeEquals</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;value1,
<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;value2)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i25">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;<a href="../../../api/set/sorted/SortedSetIterable.html" title="interface in org.eclipse.collections.api.set.sorted">SortedSetIterable</a>&lt;T&gt;&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#powerSet()">powerSet</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i26">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reverse(java.util.Comparator)">reverse</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a>&lt;T&gt;&nbsp;comparator)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i27">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reverseNaturalOrder()">reverseNaturalOrder</a></span>()</code></th>
<td class="colLast">
<div class="block">Uses the natural compareTo methods of the objects which will throw if there are any nulls.</div>
</td>
</tr>
<tr class="altColor" id="i28">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#safeNullsHigh(java.util.Comparator)">safeNullsHigh</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a>&lt;T&gt;&nbsp;notNullSafeComparator)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i29">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#safeNullsLow(java.util.Comparator)">safeNullsLow</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a>&lt;T&gt;&nbsp;notNullSafeComparator)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="inheritedList">
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></h3>
<a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang" class="externalLink">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang" class="externalLink">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang" class="externalLink">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink">wait</a></code></div>
</section>
</li>
</ul>
</section>
<section class="details">
<ul class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<li class="blockList">
<section class="methodDetails"><a id="method.detail">
<!-- -->
</a>
<h2>Method Details</h2>
<ul class="blockList">
<li class="blockList">
<section class="detail">
<h3><a id="comparableComparator()">comparableComparator</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">comparableComparator</span>()</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>10.0</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="comparableComparatorIfNull(java.util.Comparator)">comparableComparatorIfNull</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a>&lt;? super T&gt;</span>&nbsp;<span class="memberName">comparableComparatorIfNull</span>&#8203;(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a>&lt;? super T&gt;&nbsp;comparator)</span></div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>10.0</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="naturalOrder()">naturalOrder</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">naturalOrder</span>()</div>
<div class="block">Uses the natural compareTo methods of the objects which will throw if there are any nulls.</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="reverseNaturalOrder()">reverseNaturalOrder</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">reverseNaturalOrder</span>()</div>
<div class="block">Uses the natural compareTo methods of the objects which will throw if there are any nulls.</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="reverse(java.util.Comparator)">reverse</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">reverse</span>&#8203;(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a>&lt;T&gt;&nbsp;comparator)</span></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>comparator</code> - original comparator whose order will be reversed</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A comparator that reverses the order of any other Serializable Comparator.</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="safeNullsLow(java.util.Comparator)">safeNullsLow</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">safeNullsLow</span>&#8203;(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a>&lt;T&gt;&nbsp;notNullSafeComparator)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="safeNullsHigh(java.util.Comparator)">safeNullsHigh</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">safeNullsHigh</span>&#8203;(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a>&lt;T&gt;&nbsp;notNullSafeComparator)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="chain(java.util.Comparator...)">chain</a></h3>
<div class="memberSignature"><span class="annotations"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/SafeVarargs.html?is-external=true" title="class or interface in java.lang" class="externalLink">@SafeVarargs</a>
</span><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">chain</span>&#8203;(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a>&lt;T&gt;...&nbsp;comparators)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="fromFunctions(org.eclipse.collections.api.block.function.Function)">fromFunctions</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T,&#8203;
V extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a>&lt;? super V&gt;&gt;</span>
<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">fromFunctions</span>&#8203;(<span class="arguments"><a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;one)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="fromFunctions(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">fromFunctions</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParametersLong">&lt;T,&#8203;
V1 extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a>&lt;? super V1&gt;,&#8203;
V2 extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a>&lt;? super V2&gt;&gt;</span>
<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">fromFunctions</span>&#8203;(<span class="arguments"><a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V1&gt;&nbsp;one,
<a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V2&gt;&nbsp;two)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="fromFunctions(org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function,org.eclipse.collections.api.block.function.Function)">fromFunctions</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParametersLong">&lt;T,&#8203;
V1 extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a>&lt;? super V1&gt;,&#8203;
V2 extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a>&lt;? super V2&gt;,&#8203;
V3 extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a>&lt;? super V3&gt;&gt;</span>
<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">fromFunctions</span>&#8203;(<span class="arguments"><a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V1&gt;&nbsp;one,
<a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V2&gt;&nbsp;two,
<a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V3&gt;&nbsp;three)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="powerSet()">powerSet</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T&gt;</span>
<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;<a href="../../../api/set/sorted/SortedSetIterable.html" title="interface in org.eclipse.collections.api.set.sorted">SortedSetIterable</a>&lt;T&gt;&gt;</span>&nbsp;<span class="memberName">powerSet</span>()</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="ascendingCollectionSizeComparator()">ascendingCollectionSizeComparator</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;<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;?&gt;&gt;</span>&nbsp;<span class="memberName">ascendingCollectionSizeComparator</span>()</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="descendingCollectionSizeComparator()">descendingCollectionSizeComparator</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;<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;?&gt;&gt;</span>&nbsp;<span class="memberName">descendingCollectionSizeComparator</span>()</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="byFirstOfPair(java.util.Comparator)">byFirstOfPair</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;<a href="../../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a>&lt;T,&#8203;?&gt;&gt;</span>&nbsp;<span class="memberName">byFirstOfPair</span>&#8203;(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a>&lt;? super T&gt;&nbsp;comparator)</span></div>
<div class="block">Creates a comparator for pairs by using an existing comparator that only compares the first element of the pair</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>comparator</code> - original comparator that compares the first element of the pair</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A comparator that compares pairs only by their first element</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="bySecondOfPair(java.util.Comparator)">bySecondOfPair</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;<a href="../../../api/tuple/Pair.html" title="interface in org.eclipse.collections.api.tuple">Pair</a>&lt;?,&#8203;T&gt;&gt;</span>&nbsp;<span class="memberName">bySecondOfPair</span>&#8203;(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a>&lt;? super T&gt;&nbsp;comparator)</span></div>
<div class="block">Creates a comparator for pairs by using an existing comparator that only compares the second element of the pair</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>comparator</code> - original comparator that compares the second element of the pair</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A comparator that compares pairs only by their second element</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="byFunction(org.eclipse.collections.api.block.function.Function)">byFunction</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T,&#8203;
V extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a>&lt;? super V&gt;&gt;</span>
<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">byFunction</span>&#8203;(<span class="arguments"><a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;function)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="byFunctionNullsLast(org.eclipse.collections.api.block.function.Function)">byFunctionNullsLast</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T,&#8203;
V extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a>&lt;? super V&gt;&gt;</span>
<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">byFunctionNullsLast</span>&#8203;(<span class="arguments"><a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;function)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="byFunctionNullsFirst(org.eclipse.collections.api.block.function.Function)">byFunctionNullsFirst</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T,&#8203;
V extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a>&lt;? super V&gt;&gt;</span>
<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">byFunctionNullsFirst</span>&#8203;(<span class="arguments"><a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;function)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="byBooleanFunction(org.eclipse.collections.api.block.function.primitive.BooleanFunction)">byBooleanFunction</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">byBooleanFunction</span>&#8203;(<span class="arguments"><a href="../../../api/block/function/primitive/BooleanFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">BooleanFunction</a>&lt;T&gt;&nbsp;function)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="byByteFunction(org.eclipse.collections.api.block.function.primitive.ByteFunction)">byByteFunction</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">byByteFunction</span>&#8203;(<span class="arguments"><a href="../../../api/block/function/primitive/ByteFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ByteFunction</a>&lt;T&gt;&nbsp;function)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="byCharFunction(org.eclipse.collections.api.block.function.primitive.CharFunction)">byCharFunction</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">byCharFunction</span>&#8203;(<span class="arguments"><a href="../../../api/block/function/primitive/CharFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">CharFunction</a>&lt;T&gt;&nbsp;function)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="byDoubleFunction(org.eclipse.collections.api.block.function.primitive.DoubleFunction)">byDoubleFunction</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">byDoubleFunction</span>&#8203;(<span class="arguments"><a href="../../../api/block/function/primitive/DoubleFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">DoubleFunction</a>&lt;T&gt;&nbsp;function)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="byFloatFunction(org.eclipse.collections.api.block.function.primitive.FloatFunction)">byFloatFunction</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">byFloatFunction</span>&#8203;(<span class="arguments"><a href="../../../api/block/function/primitive/FloatFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">FloatFunction</a>&lt;T&gt;&nbsp;function)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="byIntFunction(org.eclipse.collections.api.block.function.primitive.IntFunction)">byIntFunction</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">byIntFunction</span>&#8203;(<span class="arguments"><a href="../../../api/block/function/primitive/IntFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">IntFunction</a>&lt;T&gt;&nbsp;function)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="byLongFunction(org.eclipse.collections.api.block.function.primitive.LongFunction)">byLongFunction</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">byLongFunction</span>&#8203;(<span class="arguments"><a href="../../../api/block/function/primitive/LongFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">LongFunction</a>&lt;T&gt;&nbsp;function)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="byShortFunction(org.eclipse.collections.api.block.function.primitive.ShortFunction)">byShortFunction</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">byShortFunction</span>&#8203;(<span class="arguments"><a href="../../../api/block/function/primitive/ShortFunction.html" title="interface in org.eclipse.collections.api.block.function.primitive">ShortFunction</a>&lt;T&gt;&nbsp;function)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="byFunction(org.eclipse.collections.api.block.function.Function,java.util.Comparator)">byFunction</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T,&#8203;
V&gt;</span>&nbsp;<span class="returnType"><a href="../../../api/block/SerializableComparator.html" title="interface in org.eclipse.collections.api.block">SerializableComparator</a>&lt;T&gt;</span>&nbsp;<span class="memberName">byFunction</span>&#8203;(<span class="arguments"><a href="../../../api/block/function/Function.html" title="interface in org.eclipse.collections.api.block.function">Function</a>&lt;? super T,&#8203;? extends V&gt;&nbsp;function,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a>&lt;V&gt;&nbsp;comparator)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="nullSafeEquals(java.lang.Object,java.lang.Object)">nullSafeEquals</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType">boolean</span>&nbsp;<span class="memberName">nullSafeEquals</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;value1,
<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;value2)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="nullSafeCompare(java.lang.Comparable,java.lang.Comparable)">
<!-- -->
</a><a id="nullSafeCompare(T,T)">nullSafeCompare</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="typeParameters">&lt;T extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a>&lt;T&gt;&gt;</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">nullSafeCompare</span>&#8203;(<span class="arguments">T&nbsp;value1,
T&nbsp;value2)</span></div>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
</div>
<!-- ========= END OF CLASS DATA ========= -->
</main>
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Comparators.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>