All Downloads are FREE. Search and download functionalities are using the official Maven repository.

au.gov.amsa.risky.format.Fixes Maven / Gradle / Ivy

There is a newer version: 0.6.19
Show newest version
package au.gov.amsa.risky.format;

import rx.Observable.Transformer;

public final class Fixes {

    public static  Transformer ignoreOutOfOrderFixes(final boolean enabled) {
        return o -> {
            return o.scan((a, b) -> {
                if (!enabled || b.time() > a.time())
                    return b;
                else
                    return a;
            }).distinctUntilChanged();
        };
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy