DBNode Not Overriding equals() and hashcode() method.
Hi, I am trying to maintain a Set of DBNode Object But, it was not working properly because DBNode is not overriding the equals() and hashcode() methods. Due to this reason i am facing difficulty to maintain similar DBNode. Looking forward for help. Thanks & Regards Ankit Kumar
Hello Ankit, I don't quite get the problem or what we are supposed to do. Why don't you simply write your own class extending DBNode, overwrite the methods and store these in a set? Cheers Dirk On 02/24/2015 01:19 PM, ankit kumar wrote:
Hi,
I am trying to maintain a Set of DBNode Object But, it was not working properly because DBNode is not overriding the equals() and hashcode() methods. Due to this reason i am facing difficulty to maintain similar DBNode. Looking forward for help.
Thanks & Regards Ankit Kumar
-- Dirk Kirsten, BaseX GmbH, http://basexgmbh.de |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22
participants (2)
-
ankit kumar -
Dirk Kirsten