Home
last modified time | relevance | path

Searched refs:AccumulatorPathVisitor (Results 1 – 8 of 8) sorted by relevance

/external/apache-commons-io/src/main/java/org/apache/commons/io/file/
DAccumulatorPathVisitor.java61 public class AccumulatorPathVisitor extends CountingPathVisitor { class
68 public static AccumulatorPathVisitor withBigIntegerCounters() { in withBigIntegerCounters()
69 return new AccumulatorPathVisitor(Counters.bigIntegerPathCounters()); in withBigIntegerCounters()
80 public static AccumulatorPathVisitor withBigIntegerCounters(final PathFilter fileFilter, in withBigIntegerCounters()
82 return new AccumulatorPathVisitor(Counters.bigIntegerPathCounters(), fileFilter, dirFilter); in withBigIntegerCounters()
90 public static AccumulatorPathVisitor withLongCounters() { in withLongCounters()
91 return new AccumulatorPathVisitor(Counters.longPathCounters()); in withLongCounters()
102 …public static AccumulatorPathVisitor withLongCounters(final PathFilter fileFilter, final PathFilte… in withLongCounters()
103 return new AccumulatorPathVisitor(Counters.longPathCounters(), fileFilter, dirFilter); in withLongCounters()
115 public AccumulatorPathVisitor() { in AccumulatorPathVisitor() method in AccumulatorPathVisitor
[all …]
DPathUtils.java126 … final AccumulatorPathVisitor visitor1 = accumulate(dir1, maxDepth, fileVisitOptions); in RelativeSortedPaths()
127 … final AccumulatorPathVisitor visitor2 = accumulate(dir2, maxDepth, fileVisitOptions); in RelativeSortedPaths()
215 …private static AccumulatorPathVisitor accumulate(final Path directory, final int maxDepth, final F… in accumulate()
216 …return visitFileTree(AccumulatorPathVisitor.withLongCounters(), directory, toFileVisitOptionSet(fi… in accumulate()
/external/apache-commons-io/src/test/java/org/apache/commons/io/file/
DAccumulatorPathVisitorTest.java64 … Arguments.of((Supplier<AccumulatorPathVisitor>) AccumulatorPathVisitor::withLongCounters), in testParameters()
65 … Arguments.of((Supplier<AccumulatorPathVisitor>) AccumulatorPathVisitor::withBigIntegerCounters), in testParameters()
66 Arguments.of((Supplier<AccumulatorPathVisitor>) () -> in testParameters()
67AccumulatorPathVisitor.withBigIntegerCounters(TrueFileFilter.INSTANCE, TrueFileFilter.INSTANCE))); in testParameters()
74 Arguments.of((Supplier<AccumulatorPathVisitor>) () -> new AccumulatorPathVisitor( in testParametersIgnoreFailures()
90 final AccumulatorPathVisitor accPathVisitor = new AccumulatorPathVisitor(); in test0ArgConstructor()
105 … public void testEmptyFolder(final Supplier<AccumulatorPathVisitor> supplier) throws IOException { in testEmptyFolder()
106 final AccumulatorPathVisitor accPathVisitor = supplier.get(); in testEmptyFolder()
121 …public void testFolders1FileSize0(final Supplier<AccumulatorPathVisitor> supplier) throws IOExcept… in testFolders1FileSize0()
122 final AccumulatorPathVisitor accPathVisitor = supplier.get(); in testFolders1FileSize0()
[all …]
DPathUtilsVisitorTest.java56 …public void testCountEmptyFolder(final Supplier<AccumulatorPathVisitor> supplier) throws IOExcepti… in testCountEmptyFolder()
70 …public void testCountFolders1FileSize0(final Supplier<AccumulatorPathVisitor> supplier) throws IOE… in testCountFolders1FileSize0()
83 …public void testCountFolders1FileSize1(final Supplier<AccumulatorPathVisitor> supplier) throws IOE… in testCountFolders1FileSize1()
96 …public void testCountFolders2FileSize2(final Supplier<AccumulatorPathVisitor> supplier) throws IOE… in testCountFolders2FileSize2()
/external/apache-commons-io/src/test/java/org/apache/commons/io/filefilter/
DAgeFileFilterTest.java31 import org.apache.commons.io.file.AccumulatorPathVisitor;
66 …final AccumulatorPathVisitor visitor = AccumulatorPathVisitor.withLongCounters(new AgeFileFilter(c… in testJavadocExampleUsingNio()
99 … final AccumulatorPathVisitor visitor = new AccumulatorPathVisitor(Counters.noopPathCounters(), in testNoCounting()
DNameFileFilterTest.java32 import org.apache.commons.io.file.AccumulatorPathVisitor;
64 …final AccumulatorPathVisitor visitor = AccumulatorPathVisitor.withLongCounters(new NameFileFilter(… in testJavadocExampleUsingNio()
103 … final AccumulatorPathVisitor visitor = new AccumulatorPathVisitor(Counters.noopPathCounters(), in testNoCounting()
DDirectoryFileFilterTest.java32 import org.apache.commons.io.file.AccumulatorPathVisitor;
63 …final AccumulatorPathVisitor visitor = AccumulatorPathVisitor.withLongCounters(DirectoryFileFilter… in testJavadocExampleUsingNio()
/external/apache-commons-io/src/main/java/org/apache/commons/io/
DFileUtils.java72 import org.apache.commons.io.file.AccumulatorPathVisitor;
2163 …private static AccumulatorPathVisitor listAccumulate(final File directory, final IOFileFilter file… in listAccumulate()
2168 …final AccumulatorPathVisitor visitor = new AccumulatorPathVisitor(Counters.noopPathCounters(), fil… in listAccumulate()
2226 final AccumulatorPathVisitor visitor = Uncheck in listFiles()
2265 …final AccumulatorPathVisitor visitor = Uncheck.apply(d -> listAccumulate(d, fileFilter, dirFilter,… in listFilesAndDirs()