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()
ModeInfo
getCreator
in interface ModeInfo
public @NonNull Channel getChannel()
ModeInfo
getChannel
in interface ModeInfo
public @NonNull Client getClient()
ClientLinked
getClient
in interface ClientLinked
public @NonNull ChannelMode getMode()
ModeInfo
public @NonNull Optional<Instant> getCreationTime()
ModeInfo
getCreationTime
in interface ModeInfo
Copyright © 2013–2021 Kitteh. All rights reserved.