Привет. Kotlin. Есть коллекция классов. Надо найти класс (первый который встретится) у которого значение определённого поля равно заданному. Как красивее )
And for the second, you should update you data form your callback (onDataChange). So, inside your Adapter class create update method, which calls notifyDataSetChange, like this(for example):
fun updateData(newData: ArrayList<String>) { itemsExample = newData notifyDataSetChanged() } (it's kotlin, but if you have any questions - ask)