summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/funcutils/FileUtils.java
diff options
context:
space:
mode:
authorEVE <EVE@EVE-PC>2017-03-13 16:42:21 -0400
committerEVE <EVE@EVE-PC>2017-03-13 16:42:21 -0400
commit27bf571d6413c3cc6a5d664b5bddd38d21d7b1cd (patch)
tree847fb52acb091c1c613d37b8477094d5762c6988 /BJC-Utils2/src/main/java/bjc/utils/funcutils/FileUtils.java
parentaa807a96cae2c47259fb38f710640883060339e9 (diff)
Formatting
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/funcutils/FileUtils.java')
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/funcutils/FileUtils.java25
1 files changed, 12 insertions, 13 deletions
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 6fc09ff..35a6b3d 100644
--- a/BJC-Utils2/src/main/java/bjc/utils/funcutils/FileUtils.java
+++ b/BJC-Utils2/src/main/java/bjc/utils/funcutils/FileUtils.java
@@ -18,24 +18,23 @@ public class FileUtils {
*
*
* @param root
- * The directory to start the traversal at
+ * The directory to start the traversal at
* @param predicate
- * The predicate to determine whether or not to traverse a
- * directory
+ * The predicate to determine whether or not to traverse
+ * a directory
* @param action
- * The action to invoke upon each file in the directory.
- * Returning true means to continue the traversal, returning
- * false stops it
+ * The action to invoke upon each file in the directory.
+ * Returning true means to continue the traversal,
+ * returning false stops it
* @throws IOException
- * if the walk throws an exception
+ * if the walk throws an exception
*
- * TODO If it becomes necessary, write another overload for
- * this with all the buttons and knobs from walkFileTree
+ * TODO If it becomes necessary, write another overload
+ * for this with all the buttons and knobs from
+ * walkFileTree
*/
- public static void traverseDirectory(Path root,
- BiPredicate<Path, BasicFileAttributes> predicate,
- BiPredicate<Path, BasicFileAttributes> action)
- throws IOException {
+ public static void traverseDirectory(Path root, BiPredicate<Path, BasicFileAttributes> predicate,
+ BiPredicate<Path, BasicFileAttributes> action) throws IOException {
Files.walkFileTree(root, new FunctionalFileVisitor(predicate, action));
}
}