boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; MyProvider provider = (MyProvider)o; if (!myName.equals(provider.myName)) return false; return FileUtil.pathsEqual(myFile, provider.myFile); }