@ Override public int compareTo ( Sha1Wrapper arg0 ) { if ( arg0 == null ) return 1 ; for ( int i = 0 ; i < 20 ; i ++ ) { int cmp = hashBytes [ i ] - arg0 . hashBytes [ i ] ; if ( cmp != 0 ) return cmp ; } return 0 ; }
Not totally sure if this is a sensible ordering