Package org.apache.struts2.util
Class SubsetIteratorFilter
java.lang.Object
org.apache.struts2.util.IteratorFilterSupport
org.apache.struts2.util.SubsetIteratorFilter
A bean that takes an iterator and outputs a subset of it.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA decider determines if the given element should be added to the list or not.Nested classes/interfaces inherited from class org.apache.struts2.util.IteratorFilterSupport
IteratorFilterSupport.EnumerationIterator -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanexecute()Where the logic of the action is executed.booleanhasNext()next()voidremove()voidsetCount(int aCount) voidsetDecider(SubsetIteratorFilter.Decider aDecider) voidvoidsetStart(int aStart) Methods inherited from class org.apache.struts2.util.IteratorFilterSupport
getIteratorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
SubsetIteratorFilter
public SubsetIteratorFilter()
-
-
Method Details
-
setCount
public void setCount(int aCount) -
setSource
-
setStart
public void setStart(int aStart) -
setDecider
-
execute
Description copied from interface:ActionWhere the logic of the action is executed. -
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
decide
-