Package org.apache.commons.io.file
Class PathUtils.RelativeSortedPaths
java.lang.Object
org.apache.commons.io.file.PathUtils.RelativeSortedPaths
- Enclosing class:
PathUtils
Private worker/holder that computes and tracks relative path names and their equality. We reuse the sorted relative
lists when comparing directories.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final boolean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
RelativeSortedPaths
(Path dir1, Path dir2, int maxDepth, LinkOption[] linkOptions, FileVisitOption[] fileVisitOptions) Constructs and initializes a new instance by accumulating directory and file info. -
Method Summary
-
Field Details
-
equals
final boolean equals -
relativeFileList1
-
relativeFileList2
-
-
Constructor Details
-
RelativeSortedPaths
private RelativeSortedPaths(Path dir1, Path dir2, int maxDepth, LinkOption[] linkOptions, FileVisitOption[] fileVisitOptions) throws IOException Constructs and initializes a new instance by accumulating directory and file info.- Parameters:
dir1
- First directory to compare.dir2
- Seconds directory to compare.maxDepth
- SeeFiles.walkFileTree(Path,Set,int,FileVisitor)
.linkOptions
- Options indicating how symbolic links are handled.fileVisitOptions
- SeeFiles.walkFileTree(Path,Set,int,FileVisitor)
.- Throws:
IOException
- if an I/O error is thrown by a visitor method.
-