filter

fun filter(predicate: (T) -> Boolean): List<T>(source)
fun filter(predicate: Predicate<T>): List<T>(source)

Finds all the QObjects in the Queue that satisfy the condition and returns a list containing them. The items are not removed from the queue. The order of the items will not maintain the queue discipline.

Return

the list of items that match the predicate

Parameters

predicate

the condition for the search