Name Return Type Description index int zero-based index value. count int index + 1 first boolean returns true if it is the first element last boolean returns true if it is the last element even boolean returns true if the count is an even number. odd boolean returns true if the count is an odd number. modulus int takes an int value and returns the modulus of count.
如果指定了status,每次的迭代数据都有IteratorStatus的实例,它有以下几个方法 int getCount()返回当前迭代了几个元素 int getIndex()返回当前元素索引 boolean isEven()当然的索引是否偶数 boolean isFirst()当前是否第一个元素 boolean isLast() boolean isOdd()当前元素索引是否奇数
[code="html"]Name Return Type Description index int zero-based index value. count int index + 1 first boolean returns true if it is the first element last boolean returns true ...