@Test public void noChildren() { PDOutlineItemIterator iterator = new PDOutlineItemIterator(null); assertFalse(iterator.hasNext()); }
@Override public boolean hasNext() { return startingItem != null && (currentItem == null || (currentItem.getNextSibling() != null && !startingItem .equals(currentItem.getNextSibling()))); }
PDOutlineItemIterator implements Iterator<PDOutlineItem> { @Override public boolean hasNext() { return startingItem != null && (currentItem == null || (currentItem.getNextSibling() != null && !startingItem .equals(currentItem.getNextSibling()))); } }
PDOutlineItemIterator implements Iterator<PDOutlineItem> { @Override public boolean hasNext() { return startingItem != null && (currentItem == null || (currentItem.getNextSibling() != null && !startingItem .equals(currentItem.getNextSibling()))); } PDOutlineItemIterator(PDOutlineItem startingItem); }
PDOutlineItemIterator implements Iterator<PDOutlineItem> { @Override public boolean hasNext() { return startingItem != null && (currentItem == null || (currentItem.getNextSibling() != null && !startingItem .equals(currentItem.getNextSibling()))); } PDOutlineItemIterator(PDOutlineItem startingItem); @Override boolean hasNext(); @Override PDOutlineItem next(); @Override void remove(); }
PDOutlineItemIterator implements Iterator<PDOutlineItem> { @Override public boolean hasNext() { return startingItem != null && (currentItem == null || (currentItem.getNextSibling() != null && !startingItem .equals(currentItem.getNextSibling()))); } PDOutlineItemIterator(PDOutlineItem startingItem); @Override boolean hasNext(); @Override PDOutlineItem next(); @Override void remove();  }