@Override public void forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure) { ListIterate.forEachWithIndex(this.delegate, objectIntProcedure); }
@Override public void forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure) { ListIterate.forEachWithIndex(this, objectIntProcedure); }
@Override public void forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure) { ListIterate.forEachWithIndex(this, objectIntProcedure); }
@Override public void forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure) { ListIterate.forEachWithIndex(this, objectIntProcedure); }
public void forEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super T> objectIntProcedure) { ListIterate.forEachWithIndex(this.delegate, fromIndex, toIndex, objectIntProcedure); }
public void forEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super T> objectIntProcedure) { ListIterate.forEachWithIndex(this, fromIndex, toIndex, 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. */ public static <T> void reverseForEachWithIndex(List<T> list, ObjectIntProcedure<? super T> objectIntProcedure) { if (!list.isEmpty()) { ListIterate.forEachWithIndex(list, list.size() - 1, 0, objectIntProcedure); } }
ListIterate.forEachWithIndex((List<T>) iterable, objectIntProcedure);
public void run() { try { this.procedure = this.procedureFactory.create(); int stop = this.end - 1; if (this.list instanceof MutableList) { ((MutableList<T>) this.list).forEachWithIndex(this.start, stop, this.procedure); } else if (this.list instanceof ArrayList) { ArrayListIterate.forEachWithIndex((ArrayList<T>) this.list, this.start, stop, this.procedure); } else { ListIterate.forEachWithIndex(this.list, this.start, stop, this.procedure); } } catch (Throwable newError) { this.taskRunner.setFailed(newError); } finally { this.taskRunner.taskCompleted(this); } }
@Override protected boolean exec() { try { this.procedure = this.procedureFactory.create(); if (this.list instanceof ListIterable) { ((ListIterable<T>) this.list).forEachWithIndex(this.start, this.end, this.procedure); } else if (this.list instanceof ArrayList) { ArrayListIterate.forEachWithIndex((ArrayList<T>) this.list, this.start, this.end, this.procedure); } else { ListIterate.forEachWithIndex(this.list, this.start, this.end, this.procedure); } } catch (Throwable newError) { this.taskRunner.setFailed(newError); } finally { this.taskRunner.taskCompleted(this); } return true; }
@Override public void forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure) { ListIterate.forEachWithIndex(this, objectIntProcedure); }
@Override public void forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure) { ListIterate.forEachWithIndex(this, objectIntProcedure); }
@Override public void forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure) { ListIterate.forEachWithIndex(this.delegate, objectIntProcedure); }
@Override public void forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure) { ListIterate.forEachWithIndex(this, objectIntProcedure); }
public void forEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super T> objectIntProcedure) { ListIterate.forEachWithIndex(this, fromIndex, toIndex, objectIntProcedure); }
public void forEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super T> objectIntProcedure) { ListIterate.forEachWithIndex(this.delegate, fromIndex, toIndex, 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. */ public static <T> void reverseForEachWithIndex(List<T> list, ObjectIntProcedure<? super T> objectIntProcedure) { if (!list.isEmpty()) { ListIterate.forEachWithIndex(list, list.size() - 1, 0, objectIntProcedure); } }
ListIterate.forEachWithIndex((List<T>) iterable, objectIntProcedure);
@Override protected boolean exec() { try { this.procedure = this.procedureFactory.create(); if (this.list instanceof ListIterable) { ((ListIterable<T>) this.list).forEachWithIndex(this.start, this.end, this.procedure); } else if (this.list instanceof ArrayList) { ArrayListIterate.forEachWithIndex((ArrayList<T>) this.list, this.start, this.end, this.procedure); } else { ListIterate.forEachWithIndex(this.list, this.start, this.end, this.procedure); } } catch (Throwable newError) { this.taskRunner.setFailed(newError); } finally { this.taskRunner.taskCompleted(this); } return true; }
public void run() { try { this.procedure = this.procedureFactory.create(); int stop = this.end - 1; if (this.list instanceof MutableList) { ((MutableList<T>) this.list).forEachWithIndex(this.start, stop, this.procedure); } else if (this.list instanceof ArrayList) { ArrayListIterate.forEachWithIndex((ArrayList<T>) this.list, this.start, stop, this.procedure); } else { ListIterate.forEachWithIndex(this.list, this.start, stop, this.procedure); } } catch (Throwable newError) { this.taskRunner.setFailed(newError); } finally { this.taskRunner.taskCompleted(this); } }