au.gov.amsa.risky.format.Fixes Maven / Gradle / Ivy
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