Example #1
0
 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;
   }
 }
Example #2
0
 public int comparePath(PathDiff potentialParent) {
   return path.toString().compareTo(potentialParent.toString());
 }
Example #3
0
 @Override
 public int compareTo(PathDiff o) {
   return path.compareTo(o.getPath());
 }