boolean (Object o) { if (this == o) return true; if (!(o instanceof EarResource resource)) return false; if (!file.getPath().equals(resource.file.getPath())) return false; if (!earDirectory.equals(resource.earDirectory)) return false; if (!relativePath.equals(resource.relativePath)) return false; return true; }