Sha256: 0fa09d8dd12bb8ac4398617f5cf21bf6359e397a0884f900451edf2ec34a60b6

Contents?: true

Size: 320 Bytes

Versions: 36

Compression:

Stored size: 320 Bytes

Contents

module Neo4j

  # == This mixin is used for both nodes and relationships to decide if two entities are equal or not.
  #
  module Equal
    def equal?(o)
      eql?(o)
    end

    def eql?(o)
      return false unless o.respond_to?(:getId)
      o.getId == getId
    end

    def ==(o)
      eql?(o)
    end

  end

end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
neo4j-1.0.0-java lib/neo4j/equal.rb
neo4j-1.0.0.beta.32-java lib/neo4j/equal.rb
neo4j-1.0.0.beta.31-java lib/neo4j/equal.rb
neo4j-1.0.0.beta.30-java lib/neo4j/equal.rb
neo4j-1.0.0.beta.29-java lib/neo4j/equal.rb
neo4j-1.0.0.beta.28-java lib/neo4j/equal.rb
neo4j-1.0.0.beta.27-java lib/neo4j/equal.rb
neo4j-1.0.0.beta.26-java lib/neo4j/equal.rb
neo4j-1.0.0.beta.25-java lib/neo4j/equal.rb
neo4j-1.0.0.beta.24-java lib/neo4j/equal.rb
neo4j-1.0.0.beta.23-java lib/neo4j/equal.rb
neo4j-1.0.0.beta.22-java lib/neo4j/equal.rb
neo4j-1.0.0.beta.21-java lib/neo4j/equal.rb
neo4j-1.0.0.beta.20 lib/neo4j/equal.rb
neo4j-1.0.0.beta.19 lib/neo4j/equal.rb
neo4j-1.0.0.beta.18 lib/neo4j/equal.rb