Formatted

class Formatted : ArrayList<FormattedSection>

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

See also

Constructors

Formatted
Link copied to clipboard
fun Formatted()

Types

Companion
Link copied to clipboard
object Companion

Static variables and methods.

Functions

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

Add a formatted section to the Formatted.

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

DSL function to add a formatted section to the Formatted.

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

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

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

Convert Formatted to a Value.

trimToSize
Link copied to clipboard
open fun trimToSize()

Properties

modCount
Link copied to clipboard
val modCount: Int
size
Link copied to clipboard
open override val size: Int