Class GroupJoinedEvent
- java.lang.Object
-
- org.drasyl.node.plugin.groups.client.event.GroupJoinedEvent
-
- All Implemented Interfaces:
Event
,GroupEvent
public class GroupJoinedEvent extends Object implements GroupEvent
An event that signals that this node has successfully joined a group.This is an immutable object.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Group
getGroup()
Runnable
getLeaveRun()
If this runnable is invoked thegroup
will be left.Set<org.drasyl.identity.IdentityPublicKey>
getMembers()
int
hashCode()
static GroupJoinedEvent
of(Group group, Set<org.drasyl.identity.IdentityPublicKey> members, Runnable leaveRun)
String
toString()
-
-
-
Method Detail
-
getGroup
public Group getGroup()
- Specified by:
getGroup
in interfaceGroupEvent
-
getMembers
public Set<org.drasyl.identity.IdentityPublicKey> getMembers()
-
getLeaveRun
public Runnable getLeaveRun()
If this runnable is invoked thegroup
will be left.- Returns:
- runnable to left the
group
-
of
public static GroupJoinedEvent of(Group group, Set<org.drasyl.identity.IdentityPublicKey> members, Runnable leaveRun)
- Throws:
NullPointerException
- ifgroup
,members
orleaveRun
isnull
-
-