private int compare ( final int o1_status , final Object o1 , final int o2_status , final Object o2 , final int index ) { if ( comparators [ index ] == null ) { if ( o1 instanceof TransactionalComparable ) return ( ( TransactionalComparable ) o1 ) . compareTo ( o1_status , o2 , o2_status ) ; else return ( ( Comparable ) o1 ) . compareTo ( o2 ) ; } else { return comparators [ index ] . compare ( o1 , o2 ) ; } }
Compare two objects