org.javers.core.diff.DiffBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javers-core Show documentation
Show all versions of javers-core Show documentation
JaVers - object auditing and diff framework for Java
package org.javers.core.diff;
import org.javers.core.commit.CommitMetadata;
import java.util.*;
/**
* @author bartosz walacik
*/
class DiffBuilder {
private final List changes = new ArrayList<>();
private DiffBuilder() {
}
public static DiffBuilder diff() {
return new DiffBuilder();
}
public static Diff empty() {
return new Diff(Collections.emptyList());
}
public DiffBuilder addChange(Change change, Optional