Class FilterListIterator
java.lang.Object
org.apache.commons.collections.iterators.FilterListIterator
- All Implemented Interfaces:
Iterator,ListIterator
@Deprecated(since="2021-04-30")
public class FilterListIterator
extends Object
implements ListIterator
Deprecated.
Apache Commons Collections version 3.x is being deprecated from AEMaaCS. The upgraded version 4.4 of Commons Collections is already included as replacement. Customers are advised to upgrade to this version of the library. Please note: the package name was changed to org.apache.commons.collections4. Further note that there are AEM APIs currently exposing the old collections classes; these will be updated in upcoming releases.
Decorates another
ListIterator using a predicate to filter elements.
This iterator decorates the underlying iterator, only allowing through
those elements that match the specified Predicate.
- Since:
- Commons Collections 2.0
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Constructs a newFilterListIteratorthat will not function untilsetListIteratorandsetPredicateare invoked.FilterListIterator(ListIterator iterator) Deprecated.Constructs a newFilterListIteratorthat will not function untilsetPredicateis invoked.FilterListIterator(ListIterator iterator, Predicate predicate) Deprecated.Constructs a newFilterListIterator.FilterListIterator(Predicate predicate) Deprecated.Constructs a newFilterListIteratorthat will not function untilsetListIteratoris invoked. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Not supported.Deprecated.Gets the iterator this iterator is using.Deprecated.Gets the predicate this iterator is using.booleanhasNext()Deprecated.booleanDeprecated.next()Deprecated.intDeprecated.previous()Deprecated.intDeprecated.voidremove()Deprecated.Not supported.voidDeprecated.Not supported.voidsetListIterator(ListIterator iterator) Deprecated.Sets the iterator for this iterator to use.voidsetPredicate(Predicate predicate) Deprecated.Sets the predicate this the iterator to use.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
FilterListIterator
public FilterListIterator()Deprecated.Constructs a newFilterListIteratorthat will not function untilsetListIteratorandsetPredicateare invoked. -
FilterListIterator
Deprecated.Constructs a newFilterListIteratorthat will not function untilsetPredicateis invoked.- Parameters:
iterator- the iterator to use
-
FilterListIterator
Deprecated.Constructs a newFilterListIterator.- Parameters:
iterator- the iterator to usepredicate- the predicate to use
-
FilterListIterator
Deprecated.Constructs a newFilterListIteratorthat will not function untilsetListIteratoris invoked.- Parameters:
predicate- the predicate to use.
-
-
Method Details
-
add
Deprecated.Not supported.- Specified by:
addin interfaceListIterator
-
hasNext
public boolean hasNext()Deprecated.- Specified by:
hasNextin interfaceIterator- Specified by:
hasNextin interfaceListIterator
-
hasPrevious
public boolean hasPrevious()Deprecated.- Specified by:
hasPreviousin interfaceListIterator
-
next
Deprecated.- Specified by:
nextin interfaceIterator- Specified by:
nextin interfaceListIterator
-
nextIndex
public int nextIndex()Deprecated.- Specified by:
nextIndexin interfaceListIterator
-
previous
Deprecated.- Specified by:
previousin interfaceListIterator
-
previousIndex
public int previousIndex()Deprecated.- Specified by:
previousIndexin interfaceListIterator
-
remove
public void remove()Deprecated.Not supported.- Specified by:
removein interfaceIterator- Specified by:
removein interfaceListIterator
-
set
Deprecated.Not supported.- Specified by:
setin interfaceListIterator
-
getListIterator
Deprecated.Gets the iterator this iterator is using.- Returns:
- the iterator.
-
setListIterator
Deprecated.Sets the iterator for this iterator to use. If iteration has started, this effectively resets the iterator.- Parameters:
iterator- the iterator to use
-
getPredicate
Deprecated.Gets the predicate this iterator is using.- Returns:
- the predicate.
-
setPredicate
Deprecated.Sets the predicate this the iterator to use.- Parameters:
predicate- the transformer to use
-