ly.img.android.pesdk.utils / FloatPointList / remove

remove

open fun remove(index: Int): Float

Removes the element at the specified position in this list. Shifts any subsequent elements to the left (subtracts one from their indices).

Parameters

index - Int: the index of the element to be removed

Exceptions

IndexOutOfBoundsException -

Return
Float: the element that was removed from the list

open fun remove(o: Any!): Boolean

Removes the first occurrence of the specified element from this list, if it is present. If the list does not contain the element, it is unchanged. More formally, removes the element with the lowest index i such that (o==null ? get(i)==null : o.equals(get(i))) (if such an element exists). Returns true if this list contained the specified element (or equivalently, if this list changed as a result of the call).

Parameters

o - Any!: element to be removed from this list, if present

Return
Boolean: true if this list contained the specified element