Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 19, 2024
1 parent 77e1066 commit 63d30d5
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import org.apache.commons.collections4.Predicate;

/**
* Decorates another {@link Iterator} using a predicate to filter elements.
* Decorates an {@link Iterator} using an optional predicate to filter elements.
* <p>
* This iterator decorates the underlying iterator, only allowing through
* those elements that match the specified {@link Predicate Predicate}.
Expand All @@ -33,16 +33,16 @@
*/
public class FilterIterator<E> implements Iterator<E> {

/** The iterator being used */
/** The iterator to be filtered. */
private Iterator<? extends E> iterator;

/** The predicate being used */
/** The predicate to filter elements. */
private Predicate<? super E> predicate;

/** The next object in the iteration */
/** The next object in the iteration. */
private E nextObject;

/** Whether the next object has been calculated yet */
/** Whether the next object has been calculated yet. */
private boolean nextObjectSet;

/**
Expand Down Expand Up @@ -77,7 +77,7 @@ public FilterIterator(final Iterator<? extends E> iterator, final Predicate<? su
/**
* Gets the iterator this iterator is using.
*
* @return the iterator
* @return the underlying iterator.
*/
public Iterator<? extends E> getIterator() {
return iterator;
Expand All @@ -86,7 +86,7 @@ public Iterator<? extends E> getIterator() {
/**
* Gets the predicate this iterator is using.
*
* @return the predicate
* @return the filtering predicate.
*/
public Predicate<? super E> getPredicate() {
return predicate;
Expand Down

0 comments on commit 63d30d5

Please sign in to comment.