FileHandles having the same type and path should be considered equal.
return file().lastModified();\r
}\r
\r
+ @Override\r
+ public boolean equals (Object obj) {\r
+ if (!(obj instanceof FileHandle)) return false;\r
+ FileHandle other = (FileHandle)obj;\r
+ return type == other.type && path().equals(other.path());\r
+ }\r
+\r
+ @Override\r
+ public int hashCode () {\r
+ int hash = 1;\r
+ hash = hash * 37 + type.hashCode();\r
+ hash = hash * 67 + path().hashCode();\r
+ return hash;\r
+ }\r
+\r
public String toString () {\r
return file.getPath().replace('\\', '/');\r
}\r