com.opensymphony.webwork.util
Class SortIteratorFilter
java.lang.Object
com.opensymphony.webwork.util.IteratorFilterSupport
com.opensymphony.webwork.util.SortIteratorFilter
- All Implemented Interfaces:
- com.opensymphony.xwork.Action, Iterator
public class SortIteratorFilter
- extends IteratorFilterSupport
- implements Iterator, com.opensymphony.xwork.Action
A bean that takes a source and comparator then attempt to sort the source
utilizing the comparator. It is being used in SortIteratorTag.
- Version:
- $Revision: 1417 $
- Author:
- Rickard �berg (rickard@middleware-company.com), tm_jee ( tm_jee(at)yahoo.co.uk )
- See Also:
SortIteratorTag
| Fields inherited from interface com.opensymphony.xwork.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortIteratorFilter
public SortIteratorFilter()
setComparator
public void setComparator(Comparator aComparator)
getList
public List getList()
setSource
public void setSource(Object anIterator)
execute
public String execute()
- Specified by:
execute in interface com.opensymphony.xwork.Action
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
Copyright © 2007 OpenSymphony. All Rights Reserved.