get item position List<Posts> : I have this to get recyclerview position click:

    int position  =   getAdapterPosition();

and this function to return list in a position:

     List<Posts> Posts;
    
        public Posts getItem(int position) {
            return Posts.get(position);
        }

in this Posts lists I have:

    public String getPid() {
            return idp;
        }

what I'd like to know is how I get this idp value from the position I want.

thank you friends
