@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; ResourceRenamed other = (ResourceRenamed) obj; if (originalLocation == null) { if (other.originalLocation != null) return false; } else if (!originalLocation.equals(other.originalLocation)) return false; return true; }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((originalLocation == null) ? 0 : originalLocation.hashCode()); return result; }
void onPathModify(Path path) { FileResource<?> fileResource = resourceFactory.create(FileResource.class, path.toFile()); fireEvent(new ResourceModified(fileResource)); }
break; case MODIFIED: changes.add(new ResourceModified(resource)); break;