Skip to content

Commit

Permalink
Priority-map: Fixed equals method to call mapEquals
Browse files Browse the repository at this point in the history
  • Loading branch information
Engelberg committed May 21, 2011
1 parent 52420d0 commit 9fe43db
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -211,7 +211,7 @@ to Clojure's assortment of built-in maps (hash-map and sorted-map).
; their key-value pairs are the same.
(equiv [this o] (= item->priority o))
(hashCode [this] (.hashCode item->priority))
(equals [this o] (= item->priority o))
(equals [this o] (.mapEquals item->priority o))

;containsKey implements (contains? pm k) behavior
(containsKey [this item] (contains? item->priority item))
Expand Down

0 comments on commit 9fe43db

Please sign in to comment.