filter

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

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.

Return

the list of items that match the predicate

Parameters

predicate

the condition for the search