Class CompareWalker
- java.lang.Object
-
- com.g2forge.alexandria.java.io.file.compare.CompareWalker
-
- All Implemented Interfaces:
IFileTreeWalker
public class CompareWalker extends Object implements IFileTreeWalker
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompareWalker.CompareWalkerBuilder
static class
CompareWalker.DirectoryMismatch
static class
CompareWalker.FileMismatch
static interface
CompareWalker.IMismatch
static class
CompareWalker.MismatchError
static class
CompareWalker.Visitor
-
Field Summary
Fields Modifier and Type Field Description protected IFunction1<? super Path,? extends IFileCompareGroupFunction<?>>
groupFunctionFunction
protected List<Path>
roots
-
Constructor Summary
Constructors Constructor Description CompareWalker(List<Path> roots, IFunction1<? super Path,? extends IFileCompareGroupFunction<?>> groupFunctionFunction)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompareWalker.CompareWalkerBuilder
builder()
protected boolean
canEqual(Object other)
protected CompareWalker.Visitor
constructVisitor(Path start)
boolean
equals(Object o)
IFunction1<? super Path,? extends IFileCompareGroupFunction<?>>
getGroupFunctionFunction()
List<Path>
getRoots()
int
hashCode()
CompareWalker.CompareWalkerBuilder
toBuilder()
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
-
groupFunctionFunction
protected final IFunction1<? super Path,? extends IFileCompareGroupFunction<?>> groupFunctionFunction
-
-
Constructor Detail
-
CompareWalker
@ConstructorProperties({"roots","groupFunctionFunction"}) public CompareWalker(List<Path> roots, IFunction1<? super Path,? extends IFileCompareGroupFunction<?>> groupFunctionFunction)
-
-
Method Detail
-
constructVisitor
protected CompareWalker.Visitor constructVisitor(Path start)
-
walkFileTree
public Path walkFileTree(Path start, Set<FileVisitOption> options, int maxDepth)
- Specified by:
walkFileTree
in interfaceIFileTreeWalker
-
builder
public static CompareWalker.CompareWalkerBuilder builder()
-
toBuilder
public CompareWalker.CompareWalkerBuilder toBuilder()
-
getGroupFunctionFunction
public IFunction1<? super Path,? extends IFileCompareGroupFunction<?>> getGroupFunctionFunction()
-
canEqual
protected boolean canEqual(Object other)
-
-