コード例 #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();
 }