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
Also in Java:
- Enums injava
- hashmaps java
- convert from integer to character java
- esponente in java
- java collapse string array
- creating file in specific location in java application
- enum with numbers java
- ceil function in java
- android studio java random number generator
- determine if a given binary tree is a valid bst
- java map declaration
- para que sirve getcontentpane en java
- how to replace all of one character with nothing in java
- place.getlatlng() returning null
- find maven version
- java how to call getReader twice
- java override equals and hashcode
- set color of text for jlabel
- run static method java
- loop through java object
- get file path java
- how to import an arraylist in java
- android get last crash adb
- creating thread in java example