I have a company object with different departments and employees. I successfully serialized my object and loaded it again into my program.
Now I want to check if these two objects are structurally equal. Does Java offer a tool to compare these objects?
I must add that my object has a list filled with other objects.
Or do I need to write my own test for this?
edit:
class test{ public int a } test t = new test(); ta = 1; test t1 = new test(); t1.a = 1;
now I want to compare t and t1 if they are the same based on their values.
source share