DBNode Not Overriding equals() and hashcode() method.
Tuesday, 24 February 2015 · 2 messages
AK
ankit kumar24 Feb 2015 13:19 #
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
DK
Dirk Kirsten24 Feb 2015 13:24 #
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
Quoted text · ankit kumar · 13 lines
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
Written for BaseX 8.0. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery