Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit 5286dfd

Browse files
committed
add equality checks for meetups
1 parent 437f934 commit 5286dfd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/src/main/java/com/puncty/lib/Meetup.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ public Meetup(Session s, String id, User admin, List<User> members, Date datetim
3232
this.location = location;
3333
}
3434

35+
public boolean equals(Meetup other) {
36+
return this.id.equals(other.getId());
37+
}
38+
3539
public String getId() {
3640
return this.id;
3741
}

0 commit comments

Comments
 (0)