Class DeleteWalker
- java.lang.Object
-
- com.g2forge.alexandria.java.io.file.DeleteWalker
-
- All Implemented Interfaces:
IFileTreeWalker
public class DeleteWalker extends Object implements IFileTreeWalker
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeleteWalker.DeleteWalkerBuilder
static class
DeleteWalker.Visitor
-
Field Summary
Fields Modifier and Type Field Description protected IPredicate1<Path>
keep
protected boolean
onexit
-
Constructor Summary
Constructors Constructor Description DeleteWalker(boolean onexit, IPredicate1<Path> keep)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeleteWalker.DeleteWalkerBuilder
builder()
protected boolean
canEqual(Object other)
protected DeleteWalker.Visitor
constructVisitor(Path start, List<Path> remaining)
boolean
equals(Object o)
IPredicate1<Path>
getKeep()
int
hashCode()
boolean
isOnexit()
String
toString()
Path
walkFileTree(Path start, Set<FileVisitOption> options, int maxDepth)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.g2forge.alexandria.java.io.file.IFileTreeWalker
walkFileTree
-
-
-
-
Field Detail
-
onexit
protected final boolean onexit
-
keep
protected final IPredicate1<Path> keep
-
-
Constructor Detail
-
DeleteWalker
@ConstructorProperties({"onexit","keep"}) public DeleteWalker(boolean onexit, IPredicate1<Path> keep)
-
-
Method Detail
-
constructVisitor
protected DeleteWalker.Visitor constructVisitor(Path start, List<Path> remaining)
-
walkFileTree
public Path walkFileTree(Path start, Set<FileVisitOption> options, int maxDepth)
- Specified by:
walkFileTree
in interfaceIFileTreeWalker
-
builder
public static DeleteWalker.DeleteWalkerBuilder builder()
-
isOnexit
public boolean isOnexit()
-
getKeep
public IPredicate1<Path> getKeep()
-
canEqual
protected boolean canEqual(Object other)
-
-