Java Iterator hasNextIteration(final Iterator iterator)

Here you can find the source of hasNextIteration(final Iterator iterator)

Description

has Next Iteration

License

Apache License

Declaration

public static boolean hasNextIteration(final Iterator iterator) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Iterator;

public class Main {
    public static boolean hasNextIteration(final Iterator iterator) {
        if (iterator.hasNext()) {
            while (iterator.hasNext()) {
                iterator.next();/*from w  w w. j a va  2 s. c om*/
            }
            return true;
        } else {
            return false;
        }
    }
}

Related

  1. getEnumeration(Iterator i)
  2. getIteratorEnumeration(final Iterator i)
  3. getObjectAtIteratorPos(Iterator i, int pos)
  4. hasNext(final Iterator i)
  5. hasNext(final Iterator it)
  6. hasNexts(List> heads)
  7. hasOpenIteratorsRequiringOpenConnection()
  8. hex(Iterator it)
  9. implode(Iterator it)