Functions

action
Link copied to clipboard
open fun action(vararg actions: Pattern?): ComponentStream
open fun action(vararg actions: String?): ComponentStream
open fun action(actions: Collection<String>): ComponentStream
allMatch
Link copied to clipboard
open override fun allMatch(predicate: Predicate<in Component>): Boolean

{@inheritDoc}

any
Link copied to clipboard
fun any(): Component

Get any entity from the stream

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

{@inheritDoc}

bounds
Link copied to clipboard
open fun bounds(vararg rectangles: Rectangle): ComponentStream

Filters the current query's contents to only include components whose width and height bounds match at least one (1) of the parameter rectangles

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

Check if the stream contains any of the provided entities

contentType
Link copied to clipboard
open fun contentType(vararg types: Int): ComponentStream

Filters the current query's contents to only include components whose content type matches at least one (1) of the parameter ints

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

{@inheritDoc}

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

{@inheritDoc}

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

{@inheritDoc}

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

{@inheritDoc}

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

{@inheritDoc}

first
Link copied to clipboard
fun first(): Component

Get the first entity from the stream

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

Get the first entity from the stream

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

{@inheritDoc}

hashCode
Link copied to clipboard
fun hashCode(vararg hashCodes: Int): ComponentStream
height
Link copied to clipboard
open fun height(vararg heights: Int): ComponentStream

Filters the current query's contents to only include components whose height matches at least one (1) of the parameter ints

id
Link copied to clipboard
open fun id(vararg ids: Int): ComponentStream
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

itemId
Link copied to clipboard
open fun itemId(vararg ids: Int): ComponentStream

Filters the current query's contents to only include components whose item id matches at least one (1) of the parameter ints

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

Get the last entity from the stream

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

Get the last entity from the stream

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

{@inheritDoc}

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

{@inheritDoc}

modelId
Link copied to clipboard
open fun modelId(vararg ids: Int): ComponentStream

Filters the current query's contents to only include components whose model id matches at least one (1) of the parameter ints

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

nil value of the entity

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

{@inheritDoc}

parents
Link copied to clipboard
open fun parents(): ComponentStream

Filters for components which are containers of other components (parents of children components).

reversed
Link copied to clipboard
fun reversed(): List<Component>
scrollHeight
Link copied to clipboard
open fun scrollHeight(vararg heights: Int): ComponentStream

Filters the current query's contents to only include components whose scroll height matches at least one (1) of the parameter ints

scrollWidth
Link copied to clipboard
open fun scrollWidth(vararg widths: Int): ComponentStream

Filters the current query's contents to only include components whose scroll width matches at least one (1) of the parameter ints

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

{@inheritDoc}

spliterator
Link copied to clipboard
open override fun spliterator(): Spliterator<Component>
text
Link copied to clipboard
open fun text(pattern: Pattern): ComponentStream
open fun text(vararg texts: String): ComponentStream
textContains
Link copied to clipboard
open fun textContains(vararg texts: String): ComponentStream
texture
Link copied to clipboard
fun texture(vararg textures: Int): ComponentStream

Filters the current query's contents to only include components whose texture id matches at least one (1) of the parameter ints

tooltip
Link copied to clipboard
fun tooltip(pattern: Pattern): ComponentStream

Filters the current query's contents to only include components whose tooltip matches the parameter Pattern

open fun tooltip(vararg texts: String): ComponentStream

Filters the current query's contents to only include components whose tooltip equals to at least one (1) of the parameter strings. Comparisons ARE case sensitive.

tooltipContains
Link copied to clipboard
open fun tooltipContains(vararg texts: String): ComponentStream

Filters the current query's contents to only include components whose tooltip contains at least one (1) of the parameter strings. Comparisons are NOT case sensitive.

viewable
Link copied to clipboard
open override fun viewable(): ComponentStream

Filters the current query's contents to only include components that are currently visible and in the viewport

widget
Link copied to clipboard
open fun widget(index: Int): ComponentStream

Filters the current query's contents to only include components who match the specified widget index

width
Link copied to clipboard
open fun width(vararg widths: Int): ComponentStream

Filters the current query's contents to only include components whose width matches at least one (1) of the parameter ints

Properties

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