Here you can find the source of hasNextIteration(final Iterator iterator)
public static boolean hasNextIteration(final Iterator iterator)
//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; } } }