I have a company object with different departments and employees. I have successfully serialized my object and loaded it in my program again.
Now I want to test if those two objects are structurally equal. Does java offer me a tool to compare those objects?
I should add that my object has a list filled with other objects.
Or do I have to write my own test for this?
edit:
class test{
public int a
}
test t = new test();
t.a = 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.