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

io.legaldocml.diff.impl.DiffBuilder Maven / Gradle / Ivy

The newest version!
package io.legaldocml.diff.impl;

import io.legaldocml.akn.AknObject;
import io.legaldocml.diff.DiffResult;

/**
 * @author Jacques Militello
 */
public final class DiffBuilder {

    private T left;
    private T right;

    public DiffBuilder left(T left) {
        this.left = left;
        return this;
    }

    public DiffBuilder right(T right) {
        this.right = right;
        return this;
    }

    public DiffResult build() {
        DiffContextImpl context = new DiffContextImpl();
        left.compare(right,context);
        return context.result();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy