T
- Type of the elements to be sorted.public class RankedComparator<T> extends Object implements Comparator<RankedProvider<T>>
Configuration
) in ranked provider
.Modifier and Type | Class and Description |
---|---|
static class |
RankedComparator.Order
Defines which ordering should be used for sorting.
|
Constructor and Description |
---|
RankedComparator() |
RankedComparator(RankedComparator.Order order) |
Modifier and Type | Method and Description |
---|---|
int |
compare(RankedProvider<T> o1,
RankedProvider<T> o2) |
protected int |
getPriority(RankedProvider<T> rankedProvider) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public RankedComparator()
public RankedComparator(RankedComparator.Order order)
public int compare(RankedProvider<T> o1, RankedProvider<T> o2)
compare
in interface Comparator<RankedProvider<T>>
protected int getPriority(RankedProvider<T> rankedProvider)
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.