Javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@366575 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ce1f5a129b
commit
8ee4f391d0
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 1999-2004 The Apache Software Foundation
|
||||
* Copyright 1999-2004,2006 The Apache Software Foundation
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -84,6 +84,7 @@ public class FilterIterator implements Iterator {
|
|||
* matches the predicate.
|
||||
*
|
||||
* @return true if there is another object that matches the predicate
|
||||
* @throws NullPointerException if either the iterator or predicate are null
|
||||
*/
|
||||
public boolean hasNext() {
|
||||
if (nextObjectSet) {
|
||||
|
@ -97,6 +98,7 @@ public class FilterIterator implements Iterator {
|
|||
* Returns the next object that matches the predicate.
|
||||
*
|
||||
* @return the next object which matches the given predicate
|
||||
* @throws NullPointerException if either the iterator or predicate are null
|
||||
* @throws NoSuchElementException if there are no more elements that
|
||||
* match the predicate
|
||||
*/
|
||||
|
@ -132,7 +134,7 @@ public class FilterIterator implements Iterator {
|
|||
/**
|
||||
* Gets the iterator this iterator is using.
|
||||
*
|
||||
* @return the iterator.
|
||||
* @return the iterator
|
||||
*/
|
||||
public Iterator getIterator() {
|
||||
return iterator;
|
||||
|
@ -152,7 +154,7 @@ public class FilterIterator implements Iterator {
|
|||
/**
|
||||
* Gets the predicate this iterator is using.
|
||||
*
|
||||
* @return the predicate.
|
||||
* @return the predicate
|
||||
*/
|
||||
public Predicate getPredicate() {
|
||||
return predicate;
|
||||
|
@ -161,7 +163,7 @@ public class FilterIterator implements Iterator {
|
|||
/**
|
||||
* Sets the predicate this the iterator to use.
|
||||
*
|
||||
* @param predicate the transformer to use
|
||||
* @param predicate the predicate to use
|
||||
*/
|
||||
public void setPredicate(Predicate predicate) {
|
||||
this.predicate = predicate;
|
||||
|
@ -183,4 +185,5 @@ public class FilterIterator implements Iterator {
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue