@Override public boolean hasNext() { // Optimization to not call bufferNext() when already closed if (isClosed) { return false; } boolean hasNext = nextObject != null || bufferNext() != null; if (!hasNext) { close(); } return hasNext; }
@Override public boolean hasNext() { // Optimization to not call bufferNext() when already closed if (isClosed) { return false; } boolean hasNext = nextObject != null || bufferNext() != null; if (!hasNext) { close(); } return hasNext; }