[COLLECTIONS-322] added since tags, fixed javadoc example.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1439046 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2013-01-27 10:35:24 +00:00
parent bb7c225843
commit 5a31eea7b4
1 changed files with 4 additions and 1 deletions

View File

@ -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&lt;Node&gt; 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) {