private static int compare ( IntegerDBIDVar i1 , int p1 , IntegerDBIDVar i2 , int p2 , Comparator < ? super DBIDRef > comp ) { i1 . internalSetIndex ( p1 ) ; i2 . internalSetIndex ( p2 ) ; return comp . compare ( i1 , i2 ) ; }
Compare two elements .