java两个对象值的比较_Java:比较两个对象中所有属性值是否相等

杜联
2023-12-01

例以下述Java类:java

import java.io.Serializable;

import java.util.List;

public class Bean_Topology implements Serializable {

private static final long serialVersionUID = 1L;

public static long getSerialversionuid() {

return serialVersionUID;

}

private Long topology_pk;

private String topology_id;

public String getTopology_id() {

return topology_id;

}

public void setTopology_id(String topology_id) {

this.topology_id = topology_id;

}

public Long getTopology_pk() {

return topology_pk;

}

public void setTopology_pk(Long topology_pk) {

this.topology_pk = topology_pk;

}

@Override

public String toString() {

return "当前拓扑的PK为:" + topology_pk + "ÿ

 类似资料: