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

org.aksw.commons.rx.op.LocalOrderBase Maven / Gradle / Ivy

There is a newer version: 0.9.9
Show newest version
package org.aksw.commons.rx.op;

import java.util.function.BiFunction;
import java.util.function.Function;

public class LocalOrderBase {
    protected Function incrementSeqId;
    protected BiFunction distanceFn;
    protected Function extractSeqId;

    public LocalOrderBase(
            Function incrementSeqId,
            BiFunction distanceFn,
            Function extractSeqId) {
        super();
        this.incrementSeqId = incrementSeqId;
        this.distanceFn = distanceFn;
        this.extractSeqId = extractSeqId;
    }

    public LocalOrderBase(LocalOrderBase other) {
        this(other.incrementSeqId, other.distanceFn, other.extractSeqId);
    }

    public LocalOrderBase(LocalOrderSpec other) {
        this(other.getIncrementSeqId(), other.getDistanceFn(), other.getExtractSeqId());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy