org.macrocloud.kernel.toolkit.function.CheckedComparator Maven / Gradle / Ivy
package org.macrocloud.kernel.toolkit.function;
/**
* 受检的 Comparator.
*
* @author macro
* @param the generic type
*/
@FunctionalInterface
public interface CheckedComparator {
/**
* Compares its two arguments for order.
*
* @param o1 o1
* @param o2 o2
* @return int
* @throws Throwable CheckedException
*/
int compare(T o1, T o2) throws Throwable;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy