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. |
getActorgetSourcegetClient, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetClientgetTag, getTag, getTagspublic 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()
PrivateEventgetTarget in interface PrivateEventpublic boolean isToClient()
PrivateEventisToClient in interface PrivateEventannotation to filter only these eventsprotected @NonNull ToStringer toStringer()
ClientEventBaseToStringer for the command.toStringer in class ActorEventBase<A extends Actor>Copyright © 2013–2021 Kitteh. All rights reserved.