@Test public void forwardFour_iteratorShouldBePositionedToTheFifthEntry() throws IOException { iterator.next(4); assertEquals("file5.txt", iterator.getEntryPathString()); }
@Override public void next(int delta) { index = Math.min(files.size(), index + delta); if(!eof()) readEntry(); }
GfsTreeIterator extends WorkingTreeIterator { @Override public void next(int delta) { index = Math.min(files.size(), index + delta); if(!eof()) readEntry(); } }
GfsTreeIterator extends WorkingTreeIterator { @Override public void next(int delta) { index = Math.min(files.size(), index + delta); if(!eof()) readEntry(); } private  GfsTreeIterator(List<GfsTreeEntry> files, GfsTreeIterator parent); private  GfsTreeIterator(List<GfsTreeEntry> files); private  GfsTreeIterator(DirectoryNode node); private  GfsTreeIterator(GfsFileStore store); private  GfsTreeIterator(GitFileSystem gfs); }
GfsTreeIterator extends WorkingTreeIterator { @Override public void next(int delta) { index = Math.min(files.size(), index + delta); if(!eof()) readEntry(); } private  GfsTreeIterator(List<GfsTreeEntry> files, GfsTreeIterator parent); private  GfsTreeIterator(List<GfsTreeEntry> files); private  GfsTreeIterator(DirectoryNode node); private  GfsTreeIterator(GfsFileStore store); private  GfsTreeIterator(GitFileSystem gfs); @Nonnull static GfsTreeIterator iterateRoot(GitFileSystem gfs); @Override boolean isModified(@Nullable DirCacheEntry entry, boolean forceContentCheck, ObjectReader reader); @Override boolean hasId(); @Override byte[] idBuffer(); @Override int idOffset(); @Nonnull @Override AbstractTreeIterator createSubtreeIterator(ObjectReader reader); @Override boolean first(); @Override boolean eof(); @Override void next(int delta); @Override void back(int delta); }
GfsTreeIterator extends WorkingTreeIterator { @Override public void next(int delta) { index = Math.min(files.size(), index + delta); if(!eof()) readEntry(); } private  GfsTreeIterator(List<GfsTreeEntry> files, GfsTreeIterator parent); private  GfsTreeIterator(List<GfsTreeEntry> files); private  GfsTreeIterator(DirectoryNode node); private  GfsTreeIterator(GfsFileStore store); private  GfsTreeIterator(GitFileSystem gfs); @Nonnull static GfsTreeIterator iterateRoot(GitFileSystem gfs); @Override boolean isModified(@Nullable DirCacheEntry entry, boolean forceContentCheck, ObjectReader reader); @Override boolean hasId(); @Override byte[] idBuffer(); @Override int idOffset(); @Nonnull @Override AbstractTreeIterator createSubtreeIterator(ObjectReader reader); @Override boolean first(); @Override boolean eof(); @Override void next(int delta); @Override void back(int delta);  }