public class PartialOrderToCompleteOrder.CompleteOrdering
extends com.google.common.collect.Ordering<T>
| Constructor and Description |
|---|
PartialOrderToCompleteOrder.CompleteOrdering() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(T left,
T right) |
<E extends T> |
sortedCopy(Iterable<E> iterable)
Returns new iterable sorted according to this complete ordering.
|
allEqual, arbitrary, binarySearch, compound, compound, explicit, explicit, from, from, greatestOf, immutableSortedCopy, isOrdered, isStrictlyOrdered, leastOf, lexicographical, max, max, max, max, min, min, min, min, natural, nullsFirst, nullsLast, onResultOf, reverse, usingToStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic PartialOrderToCompleteOrder.CompleteOrdering()
public int compare(T left, T right)
compare in interface Comparator<T>compare in class com.google.common.collect.Ordering<T>public <E extends T> List<E> sortedCopy(Iterable<E> iterable)
Returns new iterable sorted according to this complete ordering.
All items which are unknown in this ordering are stored on the end of returned collection in the same order like in iterable.
sortedCopy in class com.google.common.collect.Ordering<T>Copyright © 2014 JBoss by Red Hat. All Rights Reserved.