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-2.0.0.alpha.5-java lib/neo4j/equal.rb
neo4j-2.0.0.alpha.4-java lib/neo4j/equal.rb
neo4j-2.0.0.alpha.3-java lib/neo4j/equal.rb
neo4j-1.3.1-java lib/neo4j/equal.rb
neo4j-1.3.0-java lib/neo4j/equal.rb
neo4j-1.2.6-java lib/neo4j/equal.rb
neo4j-1.2.5-java lib/neo4j/equal.rb
neo4j-1.2.4-java lib/neo4j/equal.rb
neo4j-1.2.3-java lib/neo4j/equal.rb
neo4j-1.2.2-java lib/neo4j/equal.rb
neo4j-1.2.1-java lib/neo4j/equal.rb
neo4j-1.2.0-java lib/neo4j/equal.rb
neo4j-1.1.4-java lib/neo4j/equal.rb
neo4j-1.1.3-java lib/neo4j/equal.rb
neo4j-1.1.2-java lib/neo4j/equal.rb
neo4j-1.1.1-java lib/neo4j/equal.rb
neo4j-1.1.0-java lib/neo4j/equal.rb
neo4j-1.1.0.beta.3-java lib/neo4j/equal.rb
neo4j-1.1.0.beta.2-java lib/neo4j/equal.rb
neo4j-1.1.0.beta.1-java lib/neo4j/equal.rb