ru.lanwen.diff.uri.core.Change Maven / Gradle / Ivy
package ru.lanwen.diff.uri.core;
import difflib.Delta;
import java.util.List;
import static jersey.repackaged.com.google.common.base.Joiner.on;
/**
* User: lanwen
*/
public class Change {
private List diffs;
private List original;
private UriPart type;
public Change(List diffs, List original, UriPart type) {
this.diffs = diffs;
this.original = original;
this.type = type;
}
public List getDeltas() {
return diffs;
}
public UriPart getType() {
return type;
}
public List getOriginal() {
return original;
}
@Override
public String toString() {
return String.format("%nChange: %s, deltas:%n\t%s", type, on("\n\t").join(diffs));
}
}