com.arextest.diff.model.log.Trace Maven / Gradle / Ivy
The newest version!
package com.arextest.diff.model.log;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class Trace implements Serializable, Cloneable {
private List> currentTraceLeft;
private List> currentTraceRight;
public Trace() {
}
public Trace(List> currentTraceLeft, List> currentTraceRight) {
this.currentTraceLeft = new ArrayList<>(currentTraceLeft);
this.currentTraceRight = new ArrayList<>(currentTraceRight);
}
public List> getCurrentTraceLeft() {
return currentTraceLeft;
}
public void setCurrentTraceLeft(List> currentTraceLeft) {
this.currentTraceLeft = currentTraceLeft;
}
public List> getCurrentTraceRight() {
return currentTraceRight;
}
public void setCurrentTraceRight(List> currentTraceRight) {
this.currentTraceRight = currentTraceRight;
}
@Override
protected Object clone() throws CloneNotSupportedException {
Trace trace = ((Trace) super.clone());
trace.currentTraceLeft = this.currentTraceLeft;
return super.clone();
}
}