com.chutneytesting.design.infra.storage.dataset.DataSetPatchUtils Maven / Gradle / Ivy
package com.chutneytesting.design.infra.storage.dataset;
import static java.util.Collections.emptyMap;
import com.chutneytesting.design.domain.dataset.DataSet;
import com.github.difflib.DiffUtils;
import com.github.difflib.UnifiedDiffUtils;
import com.github.difflib.algorithm.DiffException;
import com.github.difflib.patch.Patch;
import com.github.difflib.patch.PatchFailedException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.stream.Collectors;
import org.apache.commons.lang3.tuple.Pair;
public final class DataSetPatchUtils {
private static final String SPACE = " ";
private static final String SEPARATOR = "|";
private static final String NEWLINE = "\n";
private static final String SEPARATOR_SPACED = SPACE + SEPARATOR + SPACE;
private static final String SEPARATOR_REGEX = "\\" + SEPARATOR;
private DataSetPatchUtils() {
}
public static Pair
© 2015 - 2025 Weber Informatics LLC | Privacy Policy