Wesley@的博客int compare(T o1, T o2); 接口源码描述: Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the...
紫色的路的博客经常忘记,记录一下. 首先看一下部分排序源码 //----------------------------Collections.sort------------------------------------------ ... void sort(T[] a, Comparator<? super T> c) { if ...