T- type of the compared objects.
@FunctionalInterface public interface PriorityComparator<T>
Comparableand is used to prioritize between two objects. The main difference between this interface and
Comparableis it is not require to follow the usual contract between that
Object.equals(Object). The contract of this interface is: When two objects are equal, they indicate the same priority, but indicating the same priority does not require that both objects are equal.
|Modifier and Type||Field and Description|
left- left operand in the comparison by priority.
right- left operand in the comparison by priority.
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.