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();
}
}