You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2013/01/27 11:35:24 UTC
svn commit: r1439046 -
/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/IteratorUtils.java
Author: tn
Date: Sun Jan 27 10:35:24 2013
New Revision: 1439046
URL: http://svn.apache.org/viewvc?rev=1439046&view=rev
Log:
[COLLECTIONS-322] added since tags, fixed javadoc example.
Modified:
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/IteratorUtils.java
Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/IteratorUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/IteratorUtils.java?rev=1439046&r1=1439045&r2=1439046&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/IteratorUtils.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/IteratorUtils.java Sun Jan 27 10:35:24 2013
@@ -768,6 +768,7 @@ public class IteratorUtils {
* @param nodeList the node list to use, not null
* @return a new, single use {@link Iterator}
* @throws NullPointerException if nodeList is null
+ * @since 4.0
*/
public static NodeListIterator nodeListIterator(final NodeList nodeList) {
if (nodeList == null) {
@@ -782,7 +783,8 @@ public class IteratorUtils {
* <p>
* Convenience method, allows easy iteration over NodeLists:
* <pre>
- * for(Node childNode : IteratorUtils.asIterable(node)){
+ * Iterator<Node> iterator = IteratorUtils.nodeListIterator(node);
+ * for(Node childNode : IteratorUtils.asIterable(iterator)) {
* ...
* }
* </pre>
@@ -790,6 +792,7 @@ public class IteratorUtils {
* @param node the node to use, not null
* @return a new, single use {@link Iterator}
* @throws NullPointerException if node is null
+ * @since 4.0
*/
public static NodeListIterator nodeListIterator(final Node node) {
if (node == null) {