@Override
    public Object getItem(int position) {
        if (AdapterCalculator.canShowAdAtPosition(position, adFetcher.getFetchingAdsCount())) {
            int adPos = AdapterCalculator.getAdIndex(position);
            return adFetcher.getAdForIndex(adPos);
        } else {
            int origPos = AdapterCalculator.getOriginalContentPosition(position,
                    adFetcher.getFetchingAdsCount(), mAdapter.getCount());
            return mAdapter.getItem(origPos);
        }
    }
@Override
    public Object getItem(int position) {
        if (AdapterCalculator.canShowAdAtPosition(position, adFetcher.getFetchingAdsCount())) {
            int adPos = AdapterCalculator.getAdIndex(position);
            return adFetcher.getAdForIndex(adPos);
        } else {
            int origPos = AdapterCalculator.getOriginalContentPosition(position,
                    adFetcher.getFetchingAdsCount(), mAdapter.getCount());
            return mAdapter.getItem(origPos);
        }
    }
@ Override public Object getItem ( int position ) { if ( AdapterCalculator . canShowAdAtPosition ( position , adFetcher . getFetchingAdsCount ( ) ) ) { int adPos = AdapterCalculator . getAdIndex ( position ) ; return adFetcher . getAdForIndex ( adPos ) ; } else { int origPos = AdapterCalculator . getOriginalContentPosition ( position , adFetcher . getFetchingAdsCount ( ) , mAdapter . getCount ( ) ) ; return mAdapter . getItem ( origPos ) ; } }
Gets the item in a given position in the dataset. If an ad is to be returned,
a {@link NativeExpressAdView} object is returned.

@param position the adapter position
@return the object or ad contained in this adapter position
Gets the item in a given position in the dataset . If an ad is to be returned a { @link NativeExpressAdView } object is returned .