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 interface
A 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 boolean
execute()
Where the logic of the action is executed.boolean
hasNext()
next()
void
remove()
void
setCount
(int aCount) void
setDecider
(SubsetIteratorFilter.Decider aDecider) void
void
setStart
(int aStart) Methods inherited from class org.apache.struts2.util.IteratorFilterSupport
getIterator
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:Action
Where the logic of the action is executed. -
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
decide
-