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

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

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

import io.legaldocml.diff.Diff;
import io.legaldocml.diff.DiffResult;

import java.util.List;
import java.util.stream.Stream;

/**
 * @author Jacques Militello
 */
final class DiffResultImpl implements DiffResult {

    private final List diffs;

    public DiffResultImpl(List diffs) {
        this.diffs = diffs;
    }

    @Override
    public int count() {
        return this.diffs.size();
    }

    @Override
    public Stream stream() {
        return this.diffs.stream();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy