Class FilterListIterator
- java.lang.Object
-
- org.apache.commons.collections.iterators.FilterListIterator
-
- All Implemented Interfaces:
java.util.Iterator,java.util.ListIterator
@Deprecated(since="2021-04-30") public class FilterListIterator extends java.lang.Object implements java.util.ListIteratorDeprecated.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 anotherListIteratorusing 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
Constructors Constructor Description FilterListIterator()Deprecated.Constructs a newFilterListIteratorthat will not function untilsetListIteratorandsetPredicateare invoked.FilterListIterator(java.util.ListIterator iterator)Deprecated.Constructs a newFilterListIteratorthat will not function untilsetPredicateis invoked.FilterListIterator(java.util.ListIterator iterator, Predicate predicate)Deprecated.Constructs a newFilterListIterator.FilterListIterator(Predicate predicate)Deprecated.Constructs a newFilterListIteratorthat will not function untilsetListIteratoris invoked.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadd(java.lang.Object o)Deprecated.Not supported.java.util.ListIteratorgetListIterator()Deprecated.Gets the iterator this iterator is using.PredicategetPredicate()Deprecated.Gets the predicate this iterator is using.booleanhasNext()Deprecated.booleanhasPrevious()Deprecated.java.lang.Objectnext()Deprecated.intnextIndex()Deprecated.java.lang.Objectprevious()Deprecated.intpreviousIndex()Deprecated.voidremove()Deprecated.Not supported.voidset(java.lang.Object o)Deprecated.Not supported.voidsetListIterator(java.util.ListIterator iterator)Deprecated.Sets the iterator for this iterator to use.voidsetPredicate(Predicate predicate)Deprecated.Sets the predicate this the iterator to use.
-
-
-
Constructor Detail
-
FilterListIterator
public FilterListIterator()
Deprecated.Constructs a newFilterListIteratorthat will not function untilsetListIteratorandsetPredicateare invoked.
-
FilterListIterator
public FilterListIterator(java.util.ListIterator iterator)
Deprecated.Constructs a newFilterListIteratorthat will not function untilsetPredicateis invoked.- Parameters:
iterator- the iterator to use
-
FilterListIterator
public FilterListIterator(java.util.ListIterator iterator, Predicate predicate)Deprecated.Constructs a newFilterListIterator.- Parameters:
iterator- the iterator to usepredicate- the predicate to use
-
FilterListIterator
public FilterListIterator(Predicate predicate)
Deprecated.Constructs a newFilterListIteratorthat will not function untilsetListIteratoris invoked.- Parameters:
predicate- the predicate to use.
-
-
Method Detail
-
add
public void add(java.lang.Object o)
Deprecated.Not supported.- Specified by:
addin interfacejava.util.ListIterator
-
hasNext
public boolean hasNext()
Deprecated.- Specified by:
hasNextin interfacejava.util.Iterator- Specified by:
hasNextin interfacejava.util.ListIterator
-
hasPrevious
public boolean hasPrevious()
Deprecated.- Specified by:
hasPreviousin interfacejava.util.ListIterator
-
next
public java.lang.Object next()
Deprecated.- Specified by:
nextin interfacejava.util.Iterator- Specified by:
nextin interfacejava.util.ListIterator
-
nextIndex
public int nextIndex()
Deprecated.- Specified by:
nextIndexin interfacejava.util.ListIterator
-
previous
public java.lang.Object previous()
Deprecated.- Specified by:
previousin interfacejava.util.ListIterator
-
previousIndex
public int previousIndex()
Deprecated.- Specified by:
previousIndexin interfacejava.util.ListIterator
-
remove
public void remove()
Deprecated.Not supported.- Specified by:
removein interfacejava.util.Iterator- Specified by:
removein interfacejava.util.ListIterator
-
set
public void set(java.lang.Object o)
Deprecated.Not supported.- Specified by:
setin interfacejava.util.ListIterator
-
getListIterator
public java.util.ListIterator getListIterator()
Deprecated.Gets the iterator this iterator is using.- Returns:
- the iterator.
-
setListIterator
public void setListIterator(java.util.ListIterator iterator)
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
public Predicate getPredicate()
Deprecated.Gets the predicate this iterator is using.- Returns:
- the predicate.
-
setPredicate
public void setPredicate(Predicate predicate)
Deprecated.Sets the predicate this the iterator to use.- Parameters:
predicate- the transformer to use
-
-