public class DefaultChannelTopic extends Object implements Channel.Topic
Constructor and Description |
---|
DefaultChannelTopic(@Nullable Instant time,
@Nullable String topic,
@Nullable Actor setter)
Constructs the topic snapshot.
|
Modifier and Type | Method and Description |
---|---|
@NonNull Optional<Actor> |
getSetter()
Gets who set the channel topic.
|
@NonNull Optional<Instant> |
getTime()
Gets the time the topic was set.
|
@NonNull Optional<String> |
getValue()
Gets the channel topic.
|
@NonNull String |
toString() |
public @NonNull Optional<Actor> getSetter()
Channel.Topic
getSetter
in interface Channel.Topic
public @NonNull Optional<Instant> getTime()
Channel.Topic
getTime
in interface Channel.Topic
public @NonNull Optional<String> getValue()
Channel.Topic
getValue
in interface Channel.Topic
Copyright © 2013–2021 Kitteh. All rights reserved.