Uses of Class
cloud.opencode.base.collections.Ordering
Packages that use Ordering
-
Uses of Ordering in cloud.opencode.base.collections
Methods in cloud.opencode.base.collections that return OrderingModifier and TypeMethodDescriptionstatic <T> Ordering<T> Ordering.allEqual()Return ordering that considers all values equal.Ordering.arbitrary()Return arbitrary but consistent ordering based on identity hash code.Ordering.compound(Comparator<? super T> secondary) Return compound ordering.static <T> Ordering<T> Return explicit ordering based on provided order of elements.static <T> Ordering<T> Ordering.explicit(T... valuesInOrder) Return explicit ordering based on provided order of elements.static <T> Ordering<T> Ordering.from(Comparator<T> comparator) Return ordering based on a Comparator.static <C extends Comparable<? super C>>
Ordering<C> Ordering.natural()Return natural ordering for Comparable types.Ordering.nullsFirst()Return ordering that places nulls first.Ordering.nullsLast()Return ordering that places nulls last.<F> Ordering<F> Ordering.onResultOf(Function<F, ? extends T> function) Return ordering based on a function result.Ordering.reverse()Return reverse ordering.Ordering.usingToString()Return ordering that compares using toString().