private void preload(int first,boolean increasing){
  final int start;
  final int end;
  if (increasing) {
    start=Math.max(first,mLastEnd);
    end=Math.min(first + mLoadAheadItems,mItemSource.getCount());
  }
 else {
    start=Math.max(0,first - mLoadAheadItems);
    end=Math.min(first,mLastStart);
  }
  Log.v(TAG,"preload first=" + first + " increasing="+ increasing+ " start="+ start+ " end="+ end);
  mLastEnd=end;
  mLastStart=start;
  if (start == 0 && end == 0) {
    return;
  }
  final List<T> items=mItemSource.getItemsInRange(start,end);
  if (!increasing) {
    Collections.reverse(items);
  }
  registerLoadTokens(mItemLoader.preloadItems(items));
}

private void preload ( int first , boolean increasing ) { final int start ; final int end ; if ( increasing ) { start = Math . max ( first , mLastEnd ) ; end = Math . min ( first + mLoadAheadItems , mItemSource . getCount ( ) ) ; } else { start = Math . max ( 0 , first - mLoadAheadItems ) ; end = Math . min ( first , mLastStart ) ; } Log . v ( TAG , "preload first=" + first + " increasing=" + increasing + " start=" + start + " end=" + end ) ; mLastEnd = end ; mLastStart = start ; if ( start == 0 && end == 0 ) { return ; } final List < T > items = mItemSource . getItemsInRange ( start , end ) ; if ( ! increasing ) { Collections . reverse ( items ) ; } registerLoadTokens ( mItemLoader . preloadItems ( items ) ) ; }
initiates a pre load .
