removeAll

fun <Type> GdxArray<Type>.removeAll(elements: Iterable<Type>, identity: Boolean = false)
fun <Type> GdxArray<Type>.removeAll(elements: Array<out Type>, identity: Boolean = false)

Parameters

elements

will be iterated over and removed from the array.

identity

if true, values will be compared by references. If false, equals method will be invoked.


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

Removes elements from the array that satisfy the predicate.

Return

true if the array was modified, false otherwise.

Parameters

pool

Removed items are freed to this pool.


fun <Type> GdxSet<Type>.removeAll(elements: Iterable<Type>)
fun <Type> GdxSet<Type>.removeAll(elements: Array<out Type>)

Parameters

elements

will be iterated over and removed from the set.