Class Counter

java.lang.Object
org.apache.struts2.util.Counter
All Implemented Interfaces:
Serializable, Iterator

public class Counter extends Object implements Iterator, Serializable
A bean that can be used to keep track of a counter.

Since it is an Iterator it can be used by the iterator tag

See Also:
  • Constructor Details

    • Counter

      public Counter()
  • Method Details

    • setAdd

      public void setAdd(long addition)
    • setCurrent

      public void setCurrent(long current)
    • getCurrent

      public long getCurrent()
    • setFirst

      public void setFirst(long first)
    • getFirst

      public long getFirst()
    • setInterval

      public void setInterval(long interval)
    • getInterval

      public long getInterval()
    • setLast

      public void setLast(long last)
    • getLast

      public long getLast()
    • getNext

      public long getNext()
    • getPrevious

      public long getPrevious()
    • setWrap

      public void setWrap(boolean wrap)
    • isWrap

      public boolean isWrap()
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator
    • next

      public Object next()
      Specified by:
      next in interface Iterator
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator