Module: Neo4j::Core::Equal
Overview
This mixin is used for both nodes and relationships to decide if two entities are equal or not.
Instance Method Summary
collapse
Instance Method Details
#==(o) ⇒ Object
16
17
18
|
# File 'lib/neo4j-core/equal/equal.rb', line 16
def ==(o)
eql?(o)
end
|
#eql?(o) ⇒ Boolean
11
12
13
14
|
# File 'lib/neo4j-core/equal/equal.rb', line 11
def eql?(o)
return false unless o.respond_to?(:getId)
o.getId == getId
end
|
#equal?(o) ⇒ Boolean
7
8
9
|
# File 'lib/neo4j-core/equal/equal.rb', line 7
def equal?(o)
eql?(o)
end
|