MessageStream

class MessageStream(dataSource: BackingDataSource<Message>) : SimpleStream<Message, MessageStream> , TextOps<Message, MessageStream>

Functions

allMatch
Link copied to clipboard
open override fun allMatch(predicate: Predicate<in Message>): Boolean

{@inheritDoc}

any
Link copied to clipboard
fun any(): Message

Get any entity from the stream

anyMatch
Link copied to clipboard
open override fun anyMatch(predicate: Predicate<in Message>): Boolean

{@inheritDoc}

contains
Link copied to clipboard
fun contains(vararg t: Message): Boolean
fun contains(t: Collection<Message>): Boolean

Check if the stream contains any of the provided entities

count
Link copied to clipboard
open override fun count(): Long

{@inheritDoc}

filter
Link copied to clipboard
open override fun filter(predicate: Predicate<in Message>): MessageStream
open override fun filter(predicate: Predicate<in Message>, difficulty: FilterDifficulty): MessageStream

{@inheritDoc}

filtered
Link copied to clipboard
open override fun filtered(predicate: (Message) -> Boolean): MessageStream
open override fun filtered(predicate: (Message) -> Boolean, difficulty: FilterDifficulty): MessageStream

{@inheritDoc}

findAny
Link copied to clipboard
open override fun findAny(): Optional<Message>

{@inheritDoc}

findFirst
Link copied to clipboard
open override fun findFirst(): Optional<Message>

{@inheritDoc}

first
Link copied to clipboard
fun first(): Message

Get the first entity from the stream

firstOrNull
Link copied to clipboard
fun firstOrNull(): Message?

Get the first entity from the stream

forEach
Link copied to clipboard
open override fun forEach(action: Consumer<in Message>)

{@inheritDoc}

hashCode
Link copied to clipboard
fun hashCode(vararg hashCodes: Int): MessageStream
isEmpty
Link copied to clipboard
fun isEmpty(): Boolean

Check if the stream is empty or not

isNotEmpty
Link copied to clipboard
fun isNotEmpty(): Boolean

Check if the stream is NOT empty or not

iterator
Link copied to clipboard
open operator override fun iterator(): Iterator<Message>
last
Link copied to clipboard
fun last(): Message

Get the last entity from the stream

lastOrNull
Link copied to clipboard
fun lastOrNull(): Message?

Get the last entity from the stream

list
Link copied to clipboard
fun list(): List<Message>
max
Link copied to clipboard
open override fun max(comparator: Comparator<in Message>): Optional<Message>

{@inheritDoc}

min
Link copied to clipboard
open override fun min(comparator: Comparator<in Message>): Optional<Message>

{@inheritDoc}

nil
Link copied to clipboard
open override fun nil(): Message

nil value of the entity

noneMatch
Link copied to clipboard
open override fun noneMatch(predicate: Predicate<in Message>): Boolean

{@inheritDoc}

reversed
Link copied to clipboard
fun reversed(): List<Message>
sender
Link copied to clipboard
fun sender(sender: String): MessageStream
setNearestTo
Link copied to clipboard
open override fun setNearestTo(nearestTo: Locatable): MessageStream
shuffled
Link copied to clipboard
fun shuffled(): List<Message>
sorted
Link copied to clipboard
open override fun sorted(comparator: Comparator<in Message>): MessageStream

{@inheritDoc}

spliterator
Link copied to clipboard
open override fun spliterator(): Spliterator<Message>
text
Link copied to clipboard
open fun text(pattern: Pattern): MessageStream
open fun text(vararg texts: String): MessageStream
textContains
Link copied to clipboard
open fun textContains(vararg texts: String): MessageStream
type
Link copied to clipboard
fun type(type: MessageType): MessageStream

Properties

backingDataSource
Link copied to clipboard
val backingDataSource: BackingDataSource<Message>
nearestTo
Link copied to clipboard
var nearestTo: Locatable?
pendingFilters
Link copied to clipboard
val pendingFilters: MutableList<PendingFilter<Message>>
sorters
Link copied to clipboard
var sorters: MutableList<Comparator<in Message>>