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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract RunnableIf this runnable is invoked the group will be left.abstract Set<IdentityPublicKey>inthashCode()static GroupJoinedEventof(Group group, Set<IdentityPublicKey> members, Runnable leaveRun) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.drasyl.node.plugin.groups.client.event.GroupEvent
getGroup
-
Constructor Details
-
GroupJoinedEvent
public GroupJoinedEvent()
-
-
Method Details
-
of
- Throws:
NullPointerException- ifgroup,membersorleaveRunisnull
-
getMembers
-
getLeaveRun
If this runnable is invoked the group will be left.- Returns:
- runnable to leave the group
-
hashCode
public int hashCode() -
equals
-