A
- actor involvedpublic class PrivateEventBase<A extends Actor> extends ActorEventBase<A> implements PrivateEvent
Constructor and Description |
---|
PrivateEventBase(@NonNull Client client,
@NonNull ServerMessage sourceMessage,
A sender,
@NonNull String target)
Creates the event.
|
Modifier and Type | Method and Description |
---|---|
@NonNull String |
getTarget()
Gets the target of this message.
|
boolean |
isToClient()
Gets if the target of the message is this client.
|
protected @NonNull ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
getActor
getSource
getClient, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getClient
getTag, getTag, getTags
public PrivateEventBase(@NonNull Client client, @NonNull ServerMessage sourceMessage, A sender, @NonNull String target)
client
- client for which this is occurringsourceMessage
- source messagesender
- who sent ittarget
- who received itpublic @NonNull String getTarget()
PrivateEvent
getTarget
in interface PrivateEvent
public boolean isToClient()
PrivateEvent
isToClient
in interface PrivateEvent
annotation to filter only these events
protected @NonNull ToStringer toStringer()
ClientEventBase
ToStringer
for the command.toStringer
in class ActorEventBase<A extends Actor>
Copyright © 2013–2021 Kitteh. All rights reserved.