T - public interface Each<T>
void invoke(int index,
T ele,
int length)
throws ExitLoop,
ContinueLoop,
LoopException
index - 当前项目的下标ele - 当前项目length - 集合总长度,当然并不是所有的迭代器都会给出总长度的,-1 表示未知ExitLoop - 抛出这个异常,表示你打算退出循环ContinueLoop - 抛出这个异常,表示你打算停止递归,但是不会停止循环LoopException - 抛出这个异常,表示你打算退出循环,并且将会让迭代器替你将包裹的异常抛出