com.opensymphony.webwork.util
Class SubsetIteratorFilter
java.lang.Object
com.opensymphony.webwork.util.IteratorFilterSupport
com.opensymphony.webwork.util.SubsetIteratorFilter
- All Implemented Interfaces:
- Action, Iterator
public class SubsetIteratorFilter
- extends IteratorFilterSupport
- implements Iterator, Action
A bean that takes an iterator and outputs a subset of it.
- Version:
- $Revision: 2371 $
- Author:
- Rickard ???berg (rickard@middleware-company.com), tm_jee (tm_jee (at) yahoo.co.uk)
Nested Class Summary |
static interface |
SubsetIteratorFilter.Decider
A decider determines if the given element should be added to the list or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubsetIteratorFilter
public SubsetIteratorFilter()
setCount
public void setCount(int aCount)
setSource
public void setSource(Object anIterator)
setStart
public void setStart(int aStart)
setDecider
public void setDecider(SubsetIteratorFilter.Decider aDecider)
execute
public String execute()
- Description copied from interface:
Action
- Where the logic of the action is executed.
- Specified by:
execute
in interface Action
- Returns:
- a string representing the logical result of the execution.
See constants in this interface for a list of standard result values.
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
decide
protected boolean decide(Object element)