MCPcopy Index your code
hub / github.com/FabricMC/Matcher / equals

Method equals

src/main/java/matcher/type/InputFile.java:62–73  ·  view source on GitHub ↗
(Path path)

Source from the content-addressed store, hash-verified

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) {

Callers 15

resolvePathsMethod · 0.45
postVisitDirectoryMethod · 0.45
isIrrelevantBsmMethod · 0.45
fixRecordMemberNamesMethod · 0.45
saveMethod · 0.45
exportMethodsMethod · 0.45
exportFieldsMethod · 0.45
hasAnyNamesMethod · 0.45
getCellTextMethod · 0.45
updateClassTreeMethod · 0.45

Calls 3

getSanitizedFileNameMethod · 0.95
sizeMethod · 0.80
hashMethod · 0.80

Tested by

no test coverage detected