@ Nullable private Object getItem ( int position ) { if ( mMap != null ) { return new ArrayList <> ( mMap . entrySet ( ) ) . get ( position ) . getValue ( ) ; } else if ( mJsonArray != null ) { return mJsonArray . opt ( position ) ; } return null ; }
Provides the item in a given position .