public class DefaultModeStatus<ModeType extends Mode> extends Object implements ModeStatus<ModeType>
ModeStatus.Action
Constructor and Description |
---|
DefaultModeStatus(ModeStatus.Action action,
ModeType mode)
Creates a status without a parameter.
|
DefaultModeStatus(ModeStatus.Action action,
ModeType mode,
@NonNull String parameter)
Creates a status.
|
Modifier and Type | Method and Description |
---|---|
@NonNull ModeStatus.Action |
getAction()
Gets if the mode is being set or removed.
|
@NonNull Client |
getClient()
Gets the Client to which this belongs.
|
ModeType |
getMode()
Gets the
Mode describing this mode status. |
@NonNull Optional<String> |
getParameter()
Gets the parameter for the mode status, if applicable.
|
@NonNull String |
toString() |
public DefaultModeStatus(ModeStatus.Action action, ModeType mode)
action
- adding or removingmode
- mode to setpublic DefaultModeStatus(ModeStatus.Action action, ModeType mode, @NonNull String parameter)
action
- adding or removingmode
- mode to setparameter
- parameterpublic @NonNull ModeStatus.Action getAction()
ModeStatus
getAction
in interface ModeStatus<ModeType extends Mode>
public @NonNull Client getClient()
ClientLinked
getClient
in interface ClientLinked
public ModeType getMode()
ModeStatus
Mode
describing this mode status.getMode
in interface ModeStatus<ModeType extends Mode>
public @NonNull Optional<String> getParameter()
ModeStatus
getParameter
in interface ModeStatus<ModeType extends Mode>
Copyright © 2013–2021 Kitteh. All rights reserved.