retainAll

inline fun <Type> GdxArray<Type>.retainAll(pool: Pool<Type>? = null, predicate: (Type) -> Boolean): Boolean

Removes elements from the array that do not satisfy the predicate.

Return

true if the array was modified, false otherwise.

Parameters

pool

Removed items are freed to this optional pool.