程序包 org.beetl.core

类 IteratorLoopStatus

java.lang.Object
org.beetl.core.IteratorLoopStatus
所有已实现的接口:
ILoopStatus

public class IteratorLoopStatus extends Object implements ILoopStatus
  • 构造器详细资料

    • IteratorLoopStatus

      public IteratorLoopStatus(Iterator it)
  • 方法详细资料

    • hasNext

      public final boolean hasNext()
      从接口复制的说明: ILoopStatus
      是否还存在下一项
      指定者:
      hasNext 在接口中 ILoopStatus
      返回:
      true 表示存在,false 表示不存在
    • next

      public final Object 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表示没有