Realm indexOf()
<p>I have a recyclerview populated by a Realm db, with an option to duplicate an item in the list.
The kicker here is that the newly added duplicate may not always appear directly below the chosen item.
In normal circumstances one would use </p>

<pre><code>int position = mList.indexOf(duplicate);
mAdapter.notifyItemInserted(position);
</code></pre>

<p>It seems indexOf, from the AbstractList class, is not supported in Realm, </p>

<blockquote>
  <p>java.lang.NoSuchMethodError: indexOf is not supported on RealmResults
  at io.realm.RealmResults.indexOf(RealmResults.java:183)</p>
</blockquote>

<p>What would be another solution? 
( WITHOUT using mAdapter.notifyDataSetChanged() )</p>