org.javers.core.CoreConfiguration Maven / Gradle / Ivy
package org.javers.core;
import org.javers.common.string.PrettyValuePrinter;
import org.javers.core.commit.CommitId;
import org.javers.core.diff.ListCompareAlgorithm;
import java.util.function.Supplier;
/**
* @author bartosz walacik
*/
public class CoreConfiguration {
private final PrettyValuePrinter prettyValuePrinter;
private final MappingStyle mappingStyle;
private final ListCompareAlgorithm listCompareAlgorithm;
private boolean prettyPrint;
private final boolean initialChanges;
private final boolean terminalChanges;
private final CommitIdGenerator commitIdGenerator;
private final Supplier customCommitIdGenerator;
CoreConfiguration(PrettyValuePrinter prettyValuePrinter, MappingStyle mappingStyle, ListCompareAlgorithm listCompareAlgorithm, boolean initialChanges, CommitIdGenerator commitIdGenerator, Supplier customCommitIdGenerator, boolean terminalChanges, boolean prettyPrint) {
this.prettyValuePrinter = prettyValuePrinter;
this.mappingStyle = mappingStyle;
this.listCompareAlgorithm = listCompareAlgorithm;
this.initialChanges = initialChanges;
this.commitIdGenerator = commitIdGenerator;
this.customCommitIdGenerator = customCommitIdGenerator;
this.terminalChanges = terminalChanges;
this.prettyPrint = prettyPrint;
}
public PrettyValuePrinter getPrettyValuePrinter() {
return prettyValuePrinter;
}
public MappingStyle getMappingStyle() {
return mappingStyle;
}
public ListCompareAlgorithm getListCompareAlgorithm() {
return listCompareAlgorithm;
}
public boolean isInitialChanges() {
return initialChanges;
}
public boolean isTerminalChanges() {
return terminalChanges;
}
public CommitIdGenerator getCommitIdGenerator() {
return commitIdGenerator;
}
public Supplier getCustomCommitIdGenerator() {
return customCommitIdGenerator;
}
public boolean isPrettyPrint() {
return prettyPrint;
}
}