@Test public void testHasNextEmpty() throws IOException { File hasNextDir = createDirWithSubFiles(systemTempDir, 0); BreadthFirstFileTreeIterator btfti = new BreadthFirstFileTreeIterator(hasNextDir); assertThat(btfti.hasNext()).isFalse(); }
@Override public boolean hasNext() { return !endOfTree && getNextFile() != null; }
BreadthFirstFileTreeIterator implements Iterator { @Override public boolean hasNext() { return !endOfTree && getNextFile() != null; } }
BreadthFirstFileTreeIterator implements Iterator { @Override public boolean hasNext() { return !endOfTree && getNextFile() != null; } BreadthFirstFileTreeIterator(@Nonnull File root); }
BreadthFirstFileTreeIterator implements Iterator { @Override public boolean hasNext() { return !endOfTree && getNextFile() != null; } BreadthFirstFileTreeIterator(@Nonnull File root); @Override boolean hasNext(); @Override @Nullable Object next(); @Override void remove(); }
BreadthFirstFileTreeIterator implements Iterator { @Override public boolean hasNext() { return !endOfTree && getNextFile() != null; } BreadthFirstFileTreeIterator(@Nonnull File root); @Override boolean hasNext(); @Override @Nullable Object next(); @Override void remove();  }