예제 #1
0
    public int compare(Object a, Object b) {
      RemoteFileDesc rfd1 = (RemoteFileDesc) a;
      RemoteFileDesc rfd2 = (RemoteFileDesc) b;

      if (rfd1.isFromAlternateLocation() != rfd2.isFromAlternateLocation()) {
        if (rfd1.isFromAlternateLocation()) return 1;
        else return -1;
      }
      return 0;
    }
예제 #2
0
 public boolean isFromAlternateLocation() {
   return remoteFileDesc.isFromAlternateLocation();
 }