程序包 org.beetl.core
类 IteratorLoopStatus
java.lang.Object
org.beetl.core.IteratorLoopStatus
- 所有已实现的接口:
ILoopStatus
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明final int获取当前数据项的索引final intgetIndex()获取当前项的索引值intgetSize()返回所有数据项的总个数final booleanhasData()返回是否还有数据final booleanhasNext()是否还存在下一项final booleanhasSize()返回是否有数据项final booleanisEven()判断当前数据项是否为偶数final booleanisFirst()判断当前项是否是第一项final booleanisLast()判断当前项是否是最后一项final booleanisOdd()判断当前数据项是否为奇数final Objectnext()返回下一项,并将游标往下移一项
-
构造器详细资料
-
IteratorLoopStatus
-
-
方法详细资料
-
hasNext
public final boolean hasNext()从接口复制的说明:ILoopStatus是否还存在下一项- 指定者:
hasNext在接口中ILoopStatus- 返回:
- true 表示存在,false 表示不存在
-
next
从接口复制的说明:ILoopStatus返回下一项,并将游标往下移一项- 指定者:
next在接口中ILoopStatus- 返回:
- 下一项
-
getIndex
public final int getIndex()从接口复制的说明:ILoopStatus获取当前项的索引值- 指定者:
getIndex在接口中ILoopStatus- 返回:
- 当前项的索引值
-
getDataIndex
public final int getDataIndex()从接口复制的说明:ILoopStatus获取当前数据项的索引- 指定者:
getDataIndex在接口中ILoopStatus- 返回:
- 当前数据项的索引值
-
isFirst
public final boolean isFirst()从接口复制的说明:ILoopStatus判断当前项是否是第一项- 指定者:
isFirst在接口中ILoopStatus- 返回:
- true 表示是第一项,false 表示不是第一项
-
isLast
public final boolean isLast()从接口复制的说明:ILoopStatus判断当前项是否是最后一项- 指定者:
isLast在接口中ILoopStatus- 返回:
- true 表示是最后一项,false 表示不是最后一项
-
isEven
public final boolean isEven()从接口复制的说明:ILoopStatus判断当前数据项是否为偶数- 指定者:
isEven在接口中ILoopStatus- 返回:
- true表示为偶数,false表示不为偶数
-
isOdd
public final boolean isOdd()从接口复制的说明:ILoopStatus判断当前数据项是否为奇数- 指定者:
isOdd在接口中ILoopStatus- 返回:
- true表示为奇数,false表示不为奇数
-
hasSize
public final boolean hasSize()从接口复制的说明:ILoopStatus返回是否有数据项- 指定者:
hasSize在接口中ILoopStatus- 返回:
- true表示有,false表示没有
-
getSize
public int getSize()从接口复制的说明:ILoopStatus返回所有数据项的总个数- 指定者:
getSize在接口中ILoopStatus- 返回:
- 所有数据项的总个数
-
hasData
public final boolean hasData()从接口复制的说明:ILoopStatus返回是否还有数据- 指定者:
hasData在接口中ILoopStatus- 返回:
- true表示有,false表示没有
-