class ScheduledCancellableAdapter implements Scheduler.ScheduledCancellable {
    private final ScheduledFuture<?> scheduledFuture;

    ScheduledCancellableAdapter(ScheduledFuture<?> scheduledFuture) {
        assert scheduledFuture != null;
        this.scheduledFuture = scheduledFuture;
    }

    @Override
    public long getDelay(TimeUnit unit) {
        return scheduledFuture.getDelay(unit);
    }

    @Override
    public int compareTo(Delayed other) {<FILL_FUNCTION_BODY>}

    @Override
    public boolean cancel() {
        return FutureUtils.cancel(scheduledFuture);
    }

    @Override
    public boolean isCancelled() {
        return scheduledFuture.isCancelled();
    }
}

        // unwrap other by calling on it.
        return -other.compareTo(scheduledFuture);
    
<no_super_class>