MessagesAddable

一个可以追加 Message.Element 的类型接口。

Since

4.4.0

See also

Inheritors

Functions

Link copied to clipboard
open fun add(text: String): T

Adds the given text as Text to the MessagesBuilder container.

abstract fun add(element: Message.Element): T

Add an element to the MessagesBuilder container.

Link copied to clipboard
abstract fun addAll(messages: Iterable<Message.Element>): T

Add the given messages to this MessagesAddable.

Link copied to clipboard
abstract fun build(): Messages

Build Messages.

Link copied to clipboard
open operator fun String.unaryPlus(): T

Add a text as Text to this MessagesAddable.

open operator fun Iterable<Message.Element>.unaryPlus(): T

Add messages to this MessagesAddable.

open operator fun Message.Element.unaryPlus(): T

Add an element to this MessagesAddable.

Inherited functions

Link copied to clipboard
operator fun MessagesAddable<*>.plusAssign(text: String)

使用 += operator 添加 text

使用 += operator 添加 messages

operator fun MessagesAddable<*>.plusAssign(element: Message.Element)

使用 += operator 添加 element