public static < T > void reverseForEachWithIndex ( List < T > list , ObjectIntProcedure < ? super T > objectIntProcedure ) { if ( ! list . isEmpty ( ) ) { ListIterate . forEachWithIndex ( list , list . size ( ) - 1 , 0 , objectIntProcedure ) ; } }
Iterates over the List in reverse order executing the Procedure for each element . The index passed into the ObjectIntProcedure is the actual index of the range .