@Override public final boolean hasNext() { if(hasNext == null){ // only once even with multiple calls next = prepareNext(); hasNext = next != null; } return hasNext; }
@Override public final boolean hasNext() { if(hasNext == null){ // only once even with multiple calls next = prepareNext(); hasNext = next != null; } return hasNext; }