public void addComparator ( Comparator < T > comparator , boolean reverse ) { checkLocked ( ) ; comparatorChain . add ( comparator ) ; if ( reverse == true ) { orderingBits . set ( comparatorChain . size ( ) - 1 ) ; } }
Add a Comparator to the end of the chain using the given sortFields order