Skip to content
Snippets Groups Projects
Commit fdbd559d authored by Christopher Schankula's avatar Christopher Schankula :earth_africa:
Browse files

cherry-pick GeneralCompare

comments on GeneralCompare
parent 139a7a3f
No related branches found
No related tags found
No related merge requests found
package sort;
public interface GeneralCompare<T> {
/**
* Compare two Comparable elements based on an arbitrary ordering definition.
* @param a1 The first value to be compared.
* @param a2 The second value to be compared
* @return Integer < 0 if a1 is less than a2, 0 if equal and > 0 if a1 is bigger than a2
*/
public int compare(Comparable<T> a1, Comparable<T> a2);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment