Method
setEquals
(IPersistentSet s1, Object obj)
Source from the content-addressed store, hash-verified
| 58 | } |
| 59 | |
| 60 | static public boolean setEquals(IPersistentSet s1, Object obj) { |
| 61 | if(s1 == obj) return true; |
| 62 | if(!(obj instanceof Set)) |
| 63 | return false; |
| 64 | Set m = (Set) obj; |
| 65 | |
| 66 | if(m.size() != s1.count()) |
| 67 | return false; |
| 68 | |
| 69 | for(Object aM : m) |
| 70 | { |
| 71 | if(!s1.contains(aM)) |
| 72 | return false; |
| 73 | } |
| 74 | |
| 75 | return true; |
| 76 | } |
| 77 | |
| 78 | public boolean equiv(Object obj){ |
| 79 | if (!(obj instanceof Set)) |
Tested by
no test coverage detected