public static class ModeInfo.DefaultModeInfo extends Object implements ModeInfo
ModeInfo.DefaultModeInfo
Constructor and Description |
---|
DefaultModeInfo(Client client,
Channel channel,
ChannelMode mode,
String mask,
String creator,
Instant creationTime)
Constructs the mode info.
|
Modifier and Type | Method and Description |
---|---|
Channel |
getChannel()
Gets the channel for which this entry exists.
|
Client |
getClient()
Gets the Client to which this belongs.
|
Optional<Instant> |
getCreationTime()
Gets the time at which this entry was created.
|
Optional<String> |
getCreator()
Gets the name of the party listed as creating the entry.
|
Mask |
getMask()
Gets the mask.
|
ChannelMode |
getMode()
Gets the mode for which this info exists.
|
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 known@Nonnull public Optional<String> getCreator()
ModeInfo
getCreator
in interface ModeInfo
@Nonnull public Channel getChannel()
ModeInfo
getChannel
in interface ModeInfo
@Nonnull public Client getClient()
ClientLinked
getClient
in interface ClientLinked
@Nonnull public ChannelMode getMode()
ModeInfo
@Nonnull public Optional<Instant> getCreationTime()
ModeInfo
getCreationTime
in interface ModeInfo
Copyright © 2013–2019 Kitteh. All rights reserved.