
cn.micro.core.util.BeanDiff Maven / Gradle / Ivy
package cn.micro.core.util;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* 跟踪类变动比较
*/
public class BeanDiff {
/**
* 变更字段
*/
@JsonIgnore
private transient Set fields = new HashSet<>();
/**
* 旧值
*/
@JsonIgnore
private transient Map oldValues = new HashMap<>();
/**
* 新值
*/
@JsonIgnore
private transient Map newValues = new HashMap<>();
public Set getFields() {
return fields;
}
public void setFields(Set fields) {
this.fields = fields;
}
public Map getOldValues() {
return oldValues;
}
public void setOldValues(Map oldValues) {
this.oldValues = oldValues;
}
public Map getNewValues() {
return newValues;
}
public void setNewValues(Map newValues) {
this.newValues = newValues;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy