private int compare ( Object k1 , Object k2 ) { return ( mComparator == null ? ( ( Comparable ) k1 ) . compareTo ( k2 ) : mComparator . compare ( k1 , k2 ) ) ; }
Compares two keys using the correct comparison method for this Collection .