Hello. I’m working with Realm and facing the probl...
# announcements
y
Hello. I’m working with Realm and facing the problem with
remove(int position)
method
class RealmList<E extends RealmModel> extends AbstractList<E> implements OrderedRealmCollection<E>
overrides
public E remove(int index)
method from
AbstractList
When I’m trying to call it from kotlin I get compilation error as
remove
method resolves to
MutableCollections.kt
where it is deprecated with Error level
Copy code
val list = RealmList<Smth>()
list.remove(0)

Error:(31, 19) Using 'remove(Int): T' is an error. Use removeAt(index) instead.
Is this a bug and is there any workaround for the issue?