public final void addItem ( @ Nullable final CharSequence title , @ NonNull final Class < ? extends Fragment > fragmentClass , @ Nullable final Bundle arguments ) { Condition . INSTANCE . ensureNotNull ( fragmentClass , "The fragment class may not be null" ) ; items . add ( new ViewPagerItem ( title , fragmentClass , arguments ) ) ; notifyDataSetChanged ( ) ; }
Adds a new fragment to the adapter .