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; }
public boolean isFromAlternateLocation() { return remoteFileDesc.isFromAlternateLocation(); }