(Path path)
| 60 | } |
| 61 | |
| 62 | public boolean equals(Path path) { |
| 63 | try { |
| 64 | if (this.path != null) return Files.isSameFile(path, this.path); |
| 65 | |
| 66 | if (fileName != null && !getSanitizedFileName(path).equals(fileName)) return false; |
| 67 | if (size != -1 && Files.size(path) != size) return false; |
| 68 | |
| 69 | return hash == null || Arrays.equals(hash, hashType.hash(path)); |
| 70 | } catch (IOException e) { |
| 71 | throw new UncheckedIOException(e); |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | @Override |
| 76 | public boolean equals(Object obj) { |
no test coverage detected