Answers for "compare list from db and list from request"

0

compare list from db and list from request

List<String> compareObjects(PartInfo filePart, PartInfo dbPart) {
    List<String> different = new LinkedList<String>();

    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
Posted by: Guest on May-07-2020

Code answers related to "compare list from db and list from request"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language