AbstractNode doesn't override equals and hashCode?!

Asked by Artem OBOTUROV

Hello.

Why AbstractNode doesn't override equals() and hashCode() - it is not possible to make a distinction between Node's if they are in a standard collection and/or belongs to different view? Is this intentionally? If yes - this MUST be written in code.

Thanks in advance,
Artem

Question information

Language:
English Edit question
Status:
Answered
For:
Gephi Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mathieu Bastian (mathieu.bastian) said :
#1

I'm not sure I understand what you mean. Two nodes are always different, even if its the same node in two different views. Therefore, equals and hashcode don't need to be overriden.

NodeData however is the same between views.

Can you help with this problem?

Provide an answer of your own, or ask Artem OBOTUROV for more information if necessary.

To post a message you must log in.