From d2af58b0f68ebfbba2be7e7679efec6c8c0af12f Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Thu, 9 Feb 2017 11:50:31 -0500 Subject: Update --- BJC-Utils2/src/main/java/bjc/utils/funcutils/FileUtils.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/funcutils/FileUtils.java') diff --git a/BJC-Utils2/src/main/java/bjc/utils/funcutils/FileUtils.java b/BJC-Utils2/src/main/java/bjc/utils/funcutils/FileUtils.java index ea5c72e..6fc09ff 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/funcutils/FileUtils.java +++ b/BJC-Utils2/src/main/java/bjc/utils/funcutils/FileUtils.java @@ -19,10 +19,10 @@ public class FileUtils { * * @param root * The directory to start the traversal at - * @param traversalPredicate + * @param predicate * The predicate to determine whether or not to traverse a * directory - * @param traversalAction + * @param action * The action to invoke upon each file in the directory. * Returning true means to continue the traversal, returning * false stops it @@ -33,10 +33,9 @@ public class FileUtils { * this with all the buttons and knobs from walkFileTree */ public static void traverseDirectory(Path root, - BiPredicate traversalPredicate, - BiPredicate traversalAction) + BiPredicate predicate, + BiPredicate action) throws IOException { - Files.walkFileTree(root, new FunctionalFileVisitor( - traversalPredicate, traversalAction)); + Files.walkFileTree(root, new FunctionalFileVisitor(predicate, action)); } } -- cgit v1.2.3