Returns true
if the argument represents the same
element as this
, or false
otherwise.
obj | the object to be compared with this element |
true
if the specified object represents the same
element as this
@apiNote The identity of an element involves implicit state
not directly accessible from the element's methods, including
state about the presence of unrelated types. Element objects
created by different implementations of these interfaces should
not be expected to be equal even if "the same"
element is being modeled; this is analogous to the inequality
of Class
objects for the same class file loaded through
different class loaders.
Diagram: Element