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)
| 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 |
nothing calls this directly
no test coverage detected