epoxy-adapter / com.airbnb.epoxy / BaseEpoxyAdapter / getModelPosition

getModelPosition

protected open fun getModelPosition(model: EpoxyModel<*>!): Int

Finds the position of the given model in the list. Doesn't use indexOf to avoid unnecessary equals() calls since we're looking for the same object instance.

Return
Int: The position of the given model in the current models list, or -1 if the model can't be found.