MCPcopy Create free account
hub / github.com/davidgiven/luje / equals

Method equals

lib/java/io/File.java:422–431  ·  view source on GitHub ↗

Compares obj to this file and returns true if they represent the same object using a path specific comparison. @param obj the object to compare this file with. @return true if obj is the same as this object, false otherwise.

(Object obj)

Source from the content-addressed store, hash-verified

420 * {@code false} otherwise.
421 */
422 @Override
423 public boolean equals(Object obj) {
424 if (!(obj instanceof File)) {
425 return false;
426 }
427 if (!caseSensitive) {
428 return path.equalsIgnoreCase(((File) obj).getPath());
429 }
430 return path.equals(((File) obj).getPath());
431 }
432
433 /**
434 * Returns a boolean indicating whether this file can be found on the

Callers

nothing calls this directly

Calls 3

equalsIgnoreCaseMethod · 0.80
equalsMethod · 0.65
getPathMethod · 0.45

Tested by

no test coverage detected