All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.macrocloud.kernel.toolkit.function.CheckedComparator Maven / Gradle / Ivy

There is a newer version: 1.1.0-RELEASE
Show newest version

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