public class DefaultModeInfo extends Object implements ModeInfo
| Constructor and Description |
|---|
DefaultModeInfo(@NonNull Client client,
@NonNull Channel channel,
@NonNull ChannelMode mode,
@NonNull String mask,
@Nullable String creator,
@Nullable Instant creationTime)
Constructs the mode info.
|
| Modifier and Type | Method and Description |
|---|---|
@NonNull Channel |
getChannel()
Gets the channel for which this entry exists.
|
@NonNull Client |
getClient()
Gets the Client to which this belongs.
|
@NonNull Optional<Instant> |
getCreationTime()
Gets the time at which this entry was created.
|
@NonNull Optional<String> |
getCreator()
Gets the name of the party listed as creating the entry.
|
@NonNull Mask |
getMask()
Gets the mask.
|
@NonNull ChannelMode |
getMode()
Gets the mode for which this info exists.
|
@NonNull String |
toString() |
public DefaultModeInfo(@NonNull Client client, @NonNull Channel channel, @NonNull ChannelMode mode, @NonNull String mask, @Nullable String creator, @Nullable Instant creationTime)
client - the clientchannel - channelmode - modemask - maskcreator - creator, if knowncreationTime - creation time, if knownpublic @NonNull Optional<String> getCreator()
ModeInfogetCreator in interface ModeInfopublic @NonNull Channel getChannel()
ModeInfogetChannel in interface ModeInfopublic @NonNull Client getClient()
ClientLinkedgetClient in interface ClientLinkedpublic @NonNull ChannelMode getMode()
ModeInfopublic @NonNull Optional<Instant> getCreationTime()
ModeInfogetCreationTime in interface ModeInfoCopyright © 2013–2021 Kitteh. All rights reserved.