public void updateDirectoryStatus(PathDiff pathDiff) { switch (pathDiff.getStatus()) { case MATCHED: directoryStatus[MATCHED.getIndex()]++; break; case MODIFIED: directoryStatus[MODIFIED.getIndex()]++; break; case CREATED: directoryStatus[CREATED.getIndex()]++; break; case DELETED: directoryStatus[DELETED.getIndex()]++; break; case ERROR: directoryStatus[ERROR.getIndex()]++; break; } }
public int comparePath(PathDiff potentialParent) { return path.toString().compareTo(potentialParent.toString()); }
@Override public int compareTo(PathDiff o) { return path.compareTo(o.getPath()); }