WidgetStream

open class WidgetStream(dataSource: BackingDataSource<Widget>, widgets: Array<Array<IWidget>>) : SimpleStream<Widget, WidgetStream> , IdentifiableOps<Widget, WidgetStream>

Functions

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

{@inheritDoc}

any
Link copied to clipboard
fun any(): Widget

Get any entity from the stream

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

{@inheritDoc}

contains
Link copied to clipboard
fun contains(vararg t: Widget): Boolean
fun contains(t: Collection<Widget>): 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 Widget>): WidgetStream
open override fun filter(predicate: Predicate<in Widget>, difficulty: FilterDifficulty): WidgetStream

{@inheritDoc}

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

{@inheritDoc}

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

{@inheritDoc}

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

{@inheritDoc}

first
Link copied to clipboard
fun first(): Widget

Get the first entity from the stream

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

Get the first entity from the stream

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

{@inheritDoc}

hashCode
Link copied to clipboard
fun hashCode(vararg hashCodes: Int): WidgetStream
id
Link copied to clipboard
open fun id(vararg ids: Int): WidgetStream
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<Widget>
last
Link copied to clipboard
fun last(): Widget

Get the last entity from the stream

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

Get the last entity from the stream

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

{@inheritDoc}

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

{@inheritDoc}

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

nil value of the entity

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

{@inheritDoc}

reversed
Link copied to clipboard
fun reversed(): List<Widget>
setNearestTo
Link copied to clipboard
open override fun setNearestTo(nearestTo: Locatable): WidgetStream
shuffled
Link copied to clipboard
fun shuffled(): List<Widget>
sorted
Link copied to clipboard
open override fun sorted(comparator: Comparator<in Widget>): WidgetStream

{@inheritDoc}

spliterator
Link copied to clipboard
open override fun spliterator(): Spliterator<Widget>

Properties

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