@SuppressWarnings("synthetic-access") public void add(final Class<? extends Fragment> className,final Bundle params){
  final Holder mHolder=new Holder();
  mHolder.mClassName=className.getName();
  mHolder.mParams=params;
  final int mPosition=mHolderList.size();
  mHolderList.add(mPosition,mHolder);
  notifyDataSetChanged();
}

@ SuppressWarnings ( "synthetic-access" ) public void add ( final Class < ? extends Fragment > className , final Bundle params ) { final Holder mHolder = new Holder ( ) ; mHolder . mClassName = className . getName ( ) ; mHolder . mParams = params ; final int mPosition = mHolderList . size ( ) ; mHolderList . add ( mPosition , mHolder ) ; notifyDataSetChanged ( ) ; }
method that adds a new fragment class to the viewer ( the fragment is internally instantiate )
