/** * Delegated to the underlying iterator. * * @return next element * @throws NoSuchElementException if there are no more elements */ public Object next() throws NoSuchElementException { return iterator.next(); }
/** * Delegated to the underlying iterator. * * @return next element * @throws NoSuchElementException if there are no more elements */ public Object next() throws NoSuchElementException { return iterator.next(); }
/** * Delegated to the underlying iterator. * * @return next element * @throws NoSuchElementException if there are no more elements */ public Object next() throws NoSuchElementException { return iterator.next(); }
/** * Delegated to the underlying iterator. * * @return next element * @throws NoSuchElementException if there are no more elements */ public Object next() throws NoSuchElementException { return iterator.next(); }
/** * Returns the next <code>Row</code> in the iteration. * * @return the next <code>Row</code> in the iteration. * @throws NoSuchElementException if iteration has no more <code>Row</code>s. * @see RowIterator#nextRow() */ public Row nextRow() throws NoSuchElementException { return new RowImpl((QueryResultRow) rows.next()); }
/** * Returns the next <code>Row</code> in the iteration. * * @return the next <code>Row</code> in the iteration. * @throws NoSuchElementException if iteration has no more <code>Row</code>s. * @see RowIterator#nextRow() */ public Row nextRow() throws NoSuchElementException { return new RowImpl((QueryResultRow) rows.next()); }
public Object next() { return getDelegate().next(); }
/** * 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; }
/** * Decorates and returns the next objects from the underlying iterator. * * @return decorated object * @throws UnsupportedOperationException if the returned object can not * be decorated * @see java.util.Iterator#next() */ public Object next() { Object object = iterator.next(); if (object instanceof Version) { return factory.getVersionDecorator(session, (Version) object); } else if (object instanceof VersionHistory) { return factory.getVersionHistoryDecorator(session, (VersionHistory) object); } else if (object instanceof Node) { return factory.getNodeDecorator(session, (Node) object); } else if (object instanceof Property) { return factory.getPropertyDecorator(session, (Property) object); } else if (object instanceof Item) { return factory.getItemDecorator(session, (Item) object); } else if (object == null) { return null; } else { throw new UnsupportedOperationException("No decorator available for " + object); } }
QueryResultRow row = (QueryResultRow) rows.next(); nextId = row.getNodeId(null); Item tmp = itemMgr.getItem(hierarchyMgr.getNodeEntry(nextId));
QueryResultRow row = (QueryResultRow) rows.next(); nextId = row.getNodeId(null); Item tmp = itemMgr.getItem(hierarchyMgr.getNodeEntry(nextId));
long zise = 0; while (it.hasNext()) { it.next(); zise++;
LiveRelationship relationship = (LiveRelationship) liveCopiesIterator.next(); if (currentPage.getPath().startsWith(relationship.getTargetPath() + "/")) { Page liveCopySearchRoot = pageManager.getPage(relationship.getTargetPath());
LiveRelationship relationship = (LiveRelationship) liveCopiesIterator.next(); if (currentPage.getPath().startsWith(relationship.getTargetPath() + "/")) { Page liveCopyNavigationRoot = pageManager.getPage(relationship.getTargetPath());