Methods Summary |
---|
public long | getCurrent()
return current;
|
public long | getFirst()
return first;
|
public long | getInterval()
return interval;
|
public long | getLast()
return last;
|
public long | getNext()
long next = current;
current += interval;
if (wrap && (current > last)) {
current -= ((1 + last) - first);
}
return next;
|
public long | getPrevious()
current -= interval;
if (wrap && (current < first)) {
current += (last - first + 1);
}
return current;
|
public boolean | hasNext()
return ((last == -1) || wrap) ? true : (current <= last);
|
public boolean | isWrap()
return wrap;
|
public java.lang.Object | next()
return new Long(getNext());
|
public void | remove()
// Do nothing
|
public void | setAdd(long addition)
current += addition;
|
public void | setCurrent(long current)
this.current = current;
|
public void | setFirst(long first)
this.first = first;
current = first;
|
public void | setInterval(long interval)
this.interval = interval;
|
public void | setLast(long last)
this.last = last;
|
public void | setWrap(boolean wrap)
this.wrap = wrap;
|