/** * Delegated to the underlying iterator. * * @return <code>true</code> if the iterator has more elements, * <code>false</code> otherwise */ public boolean hasNext() { return iterator.hasNext(); }
/** * Checks whether the underlying iterator has more elements. * * @return <code>true</code> if more elements exist, * <code>false</code> otherwise * @see java.util.Iterator#hasNext() */ public boolean hasNext() { return iterator.hasNext(); }
/** * Returns <code>true</code> if the iteration has more <code>Row</code>s. * (In other words, returns <code>true</code> if <code>next</code> would * return an <code>Row</code> rather than throwing an exception.) * * @return <code>true</code> if the iterator has more elements. * @see Iterator#hasNext() */ public boolean hasNext() { return rows.hasNext(); }
/** * Returns <code>true</code> if the iteration has more <code>Row</code>s. * (In other words, returns <code>true</code> if <code>next</code> would * return an <code>Row</code> rather than throwing an exception.) * * @return <code>true</code> if the iterator has more elements. * @see Iterator#hasNext() */ public boolean hasNext() { return rows.hasNext(); }
/** * Delegated to the underlying iterator. * * @return <code>true</code> if the iterator has more elements, * <code>false</code> otherwise */ public boolean hasNext() { return iterator.hasNext(); }
/** * Delegated to the underlying iterator. * * @return <code>true</code> if the iterator has more elements, * <code>false</code> otherwise */ public boolean hasNext() { return iterator.hasNext(); }
/** * Delegated to the underlying iterator. * * @return <code>true</code> if the iterator has more elements, * <code>false</code> otherwise */ public boolean hasNext() { return iterator.hasNext(); }
@Override public boolean hasNext() { return delegate.hasNext(); }
public boolean hasNext() { return getDelegate().hasNext(); }
/** * Returns an array of remote references to the next elements in this * iteration. * * @return array of remote references, or <code>null</code> * @throws RemoteException on RMI errors */ @Override public Object[] nextObjects() throws RemoteException { ArrayList items = new ArrayList(); while (items.size() < maxBufferSize && iterator.hasNext()) { items.add(getRemoteObject(iterator.next())); } if (items.size() > 0) { return items.toArray(new Object[items.size()]); } else { size = iterator.getPosition(); return null; } }
/** * * @param it * @return */ private long getSize(RangeIterator it) { long size = it.getSize(); if (size != -1) { return size; } size = 0; while (it.hasNext()) { it.next(); size++; } return size; }
/** * Returns the size of the <code>RangeIterator</code> <code>it</code>. * Note, that the <code>RangeIterator</code> might get consumed, because * {@link RangeIterator#getSize()} might return -1 (information unavailable). * @param it a <code>RangeIterator</code>. * @return the size of the iterator (number of elements). */ protected long getSize(RangeIterator it) { long size = it.getSize(); if (size != -1) { return size; } size = 0; while (it.hasNext()) { it.next(); size++; } return size; }
nextScore = 0; while (next == null && rows.hasNext()) { try { QueryResultRow row = (QueryResultRow) rows.next();
nextScore = 0; while (next == null && rows.hasNext()) { try { QueryResultRow row = (QueryResultRow) rows.next();
while (it.hasNext()) { it.next(); zise++;
while (liveCopiesIterator.hasNext()) { LiveRelationship relationship = (LiveRelationship) liveCopiesIterator.next(); if (currentPage.getPath().startsWith(relationship.getTargetPath() + "/")) {
while (liveCopiesIterator.hasNext()) { LiveRelationship relationship = (LiveRelationship) liveCopiesIterator.next(); if (currentPage.getPath().startsWith(relationship.getTargetPath() + "/")) {