class MessageList<T> : Any

Fields

Name Description
val size: Int

Constructors

<init>

constructor(messages: MutableList<T>)

Parameters

Name Description
messages: MutableList<T>

Methods

plusAssign

operator fun plusAssign(other: MessageList<T>)

Parameters

Name Description
other: MessageList<T>

ReturnValue

Name Description
Unit

plusAssign

operator fun plusAssign(other: T)

Parameters

Name Description
other: T

ReturnValue

Name Description
Unit

getMessages

fun getMessages(): List<T>

ReturnValue

Name Description
List<T>

isEmpty

fun isEmpty(): Boolean

ReturnValue

Name Description
Boolean

isNotEmpty

fun isNotEmpty(): Boolean

ReturnValue

Name Description
Boolean

append

fun append(message: T)

Parameters

Name Description
message: T

ReturnValue

Name Description
Unit

append

fun append(messages: List<T>)

Parameters

Name Description
messages: List<T>

ReturnValue

Name Description
Unit

Extensions

getNumberOfMessages

fun DefaultMessageList.getNumberOfMessages(severity: Severity): DefaultMessageList

Returns the number of entries with a certain severity.

Receiver

Name Description
DefaultMessageList

Parameters

Name Description
severity: Severity

ReturnValue

Name Description
DefaultMessageList

getTextSummary

fun DefaultMessageList.getTextSummary(): String

Returns a summary of the message numbers depending on the severity.

Receiver

Name Description
DefaultMessageList

ReturnValue

Name Description
String

CompanionObject

MessageList

class MessageList<T> : Any

Methods

of

fun <T> of(messages: List<T>): MessageList<T>

Parameters

Name Description
messages: List<T>

ReturnValue

Name Description
MessageList<T>

of

fun <T> of(message: T): MessageList<T>

Parameters

Name Description
message: T

ReturnValue

Name Description
MessageList<T>