Class GroupJoinedEvent
java.lang.Object
org.drasyl.node.plugin.groups.client.event.GroupJoinedEvent
- All Implemented Interfaces:
Event
,GroupEvent
An event that signals that this node has successfully joined a group.
This is an immutable object.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
abstract Runnable
If this runnable is invoked the group will be left.abstract Set<IdentityPublicKey>
int
hashCode()
static GroupJoinedEvent
of
(Group group, Set<IdentityPublicKey> members, Runnable leaveRun) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.drasyl.node.plugin.groups.client.event.GroupEvent
getGroup
-
Constructor Details
-
GroupJoinedEvent
public GroupJoinedEvent()
-
-
Method Details
-
of
- Throws:
NullPointerException
- ifgroup
,members
orleaveRun
isnull
-
getMembers
-
getLeaveRun
If this runnable is invoked the group will be left.- Returns:
- runnable to leave the group
-
hashCode
public int hashCode() -
equals
-