Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed compare() method to (S.A ⊆ T.A)
  • Loading branch information
itakurah committed Dec 7, 2023
commit e7fa3e223f4806f9b1dc1168ff4ba908f2f69a05
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public boolean lookup(T e) {
* @return true if the current G-Set is a subset of the other, false otherwise
*/
public boolean compare(GSet<T> other) {
return elements.containsAll(other.elements);
return other.elements.containsAll(elements);
}

/**
Expand Down