Swipe in recycler view - can't make condition to stop

Appium 1.6.4-beta6, Java client 5.0.0-beta8
In my native android app, I am successfully swiping in the recycler view, I am trying to tell the code to stop when he will reach some element, but this is recycler view which means that the list in any swipe, is every time 5, next swipe new 5,and so on… So List can’t help, any suggestions?