Formatted

Represents a string broken into sections annotated with separate formatting options.

See also

Constructors

Link copied to clipboard
fun Formatted()

Types

Link copied to clipboard
object Companion

Static variables and methods.

Functions

Link copied to clipboard
open override fun add(element: FormattedSection): Boolean
open override fun add(index: Int, element: FormattedSection)
Link copied to clipboard
open override fun addAll(elements: Collection<FormattedSection>): Boolean
open override fun addAll(index: Int, elements: Collection<FormattedSection>): Boolean
Link copied to clipboard
open override fun clear()
Link copied to clipboard
open override fun clone(): Any
Link copied to clipboard
open operator override fun contains(element: FormattedSection): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<FormattedSection>): Boolean
Link copied to clipboard
open fun ensureCapacity(p0: Int)
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun forEach(p0: Consumer<in FormattedSection>)
Link copied to clipboard

Add a formatted section to the Formatted.

fun formattedSection(text: String, block: FormattedSection.() -> Unit)

DSL function to add a formatted section to the Formatted.

Link copied to clipboard
open operator override fun get(index: Int): FormattedSection
Link copied to clipboard

Get the formatted field's text as a plain String.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun indexOf(element: FormattedSection): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): MutableIterator<FormattedSection>
Link copied to clipboard
open override fun lastIndexOf(element: FormattedSection): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun remove(element: FormattedSection): Boolean
Link copied to clipboard
open override fun removeAll(elements: Collection<FormattedSection>): Boolean
Link copied to clipboard
open override fun removeAt(p0: Int): FormattedSection
Link copied to clipboard
open override fun removeIf(p0: Predicate<in FormattedSection>): Boolean
Link copied to clipboard
open override fun replaceAll(p0: UnaryOperator<FormattedSection>)
Link copied to clipboard
open override fun retainAll(elements: Collection<FormattedSection>): Boolean
Link copied to clipboard
open operator override fun set(index: Int, element: FormattedSection): FormattedSection
Link copied to clipboard
open override fun sort(p0: Comparator<in FormattedSection>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): MutableList<FormattedSection>
Link copied to clipboard
open override fun toArray(): Array<Any>
open override fun <T : Any> toArray(p0: Array<T>): Array<T>
open fun <T : Any> toArray(p0: IntFunction<Array<T>>): Array<T>
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun toValue(): Value

Convert Formatted to a Value.

Link copied to clipboard
open fun trimToSize()

Properties

Link copied to clipboard
open override val size: Int