Type
- type of changepublic class UserInfoChangeEventBase<Type> extends ActorEventBase<User> implements UserInfoChangeEvent<Type>
UserInfoChangeEvent
Modifier | Constructor and Description |
---|---|
protected |
UserInfoChangeEventBase(@NonNull Client client,
@NonNull ServerMessage sourceMessage,
@NonNull User oldUser,
@NonNull User newUser,
@NonNull Function<User,Type> changedInfoGetter)
Constructs the event.
|
Modifier and Type | Method and Description |
---|---|
@NonNull Change<Type> |
getChange()
Gets the changed information.
|
@NonNull User |
getNewUser()
Gets the new user instance after the change took place.
|
@NonNull User |
getOldUser()
Gets the old user instance before the change took place.
|
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
protected UserInfoChangeEventBase(@NonNull Client client, @NonNull ServerMessage sourceMessage, @NonNull User oldUser, @NonNull User newUser, @NonNull Function<User,Type> changedInfoGetter)
client
- the clientsourceMessage
- source messageoldUser
- the actornewUser
- the new actorchangedInfoGetter
- getter for the changed infopublic @NonNull User getOldUser()
UserInfoChangeEvent
getOldUser
in interface UserInfoChangeEvent<Type>
public @NonNull User getNewUser()
UserInfoChangeEvent
getNewUser
in interface UserInfoChangeEvent<Type>
public @NonNull Change<Type> getChange()
UserInfoChangeEvent
getChange
in interface UserInfoChangeEvent<Type>
protected @NonNull ToStringer toStringer()
ClientEventBase
ToStringer
for the command.toStringer
in class ActorEventBase<User>
Copyright © 2013–2021 Kitteh. All rights reserved.