public static <T> void forEachWithIndex(List<T> list, ObjectIntProcedure<? super T> objectIntProcedure)
    {
        if (list instanceof RandomAccess)
        {
            RandomAccessListIterate.forEachWithIndex(list, objectIntProcedure);
        }
        else
        {
            IterableIterate.forEachWithIndex(list, objectIntProcedure);
        }
    }
public static < T > void forEachWithIndex ( List < T > list , ObjectIntProcedure < ? super T > objectIntProcedure ) { if ( list instanceof RandomAccess ) { RandomAccessListIterate . forEachWithIndex ( list , objectIntProcedure ) ; } else { IterableIterate . forEachWithIndex ( list , objectIntProcedure ) ; } }
@see Iterate#forEachWithIndex(Iterable, ObjectIntProcedure)