/* (non-Javadoc) * @see java.util.Iterator#hasNext() */ @Override public boolean hasNext() { boolean result = false; ACLEntry currentEntry = getCurrentEntry(); ACLEntry nextEntry = null; try { nextEntry = ((currentEntry == null) ? (isDone() ? null : getAcl().getFirstEntry()) : getAcl().getNextEntry(currentEntry)); result = (nextEntry != null); } catch (Throwable t) { DominoUtils.handleException(t); } finally { DominoUtils.incinerate(nextEntry); } return result; }
/* (non-Javadoc) * @see java.util.Iterator#next() */ @Override public ACLEntry next() { ACLEntry result = null; ACLEntry currentEntry = getCurrentEntry(); try { result = ((currentEntry == null) ? getAcl().getFirstEntry() : getAcl().getNextEntry(currentEntry)); if (result == null) { setDone(true); } else { setStarted(true); } } catch (Throwable t) { DominoUtils.handleException(t); } finally { DominoUtils.incinerate(currentEntry); setCurrentEntry(result); } return result; }