📜  比较来自 db 的列表和来自请求的列表 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:39.700000             🧑  作者: Mango

代码示例1
List compareObjects(PartInfo filePart, PartInfo dbPart) {
    List different = new LinkedList();

    if (!filePart.getNumber().equals(dbPart.getNumber())) {
        different.add("number");
    }
    //repeat for all your fields
    return different;
}


#Note: Check differences for each field ob each object from 2 list only