Looking at the code in the first post, which seems to be the only "complete" collection of code, I do not see a call to the equals method, nor do I see the method. Post the version of the code you...
Type: Posts; User: jps
Looking at the code in the first post, which seems to be the only "complete" collection of code, I do not see a call to the equals method, nor do I see the method. Post the version of the code you...
Looking over the code, I do not see where the equals method was overridden, nor do I see where it is being called. (yes I saw the snippet, but I do not see the method in the code in the OP)
If you...
Suggest search keywords
Provide links to tutorials and/or documentation
Explain functionality of incorrectly used keywords/symbols
Much help can be provided without resorting to providing...
@syedbhai
We strive to help people in solving their problems, without providing solutions, and we thank you to do the same.
Please read: The problem with spoonfeeding.
I think that the use of the .equals method, in terms of comparing two objects, should return true if and only if all considered fields match in value
It looks more like what you need here is to...
That would depend on how you define "correctly"
|| (or) returns true if either this or that are true.
The desired result is probably to return true if this and that are both true
How did you compare one field?
Do the same thing on each field you want compared. Looks like the method already makes two comparisons, what is the problem in adding a third or fourth?
Give it a try...
You will have to write the body of the method to compare each field individually and return the overall results