// Path: autoadapter/src/main/java/com/benny/library/autoadapter/listener/DataSetChangedNotifier.java
// public interface DataSetChangedNotifier {
//     void notifyDataSetChanged();
// }


import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.benny.library.autoadapter.listener.DataSetChangedNotifier;
package com.benny.library.autoadapter;



/**
 * Created by benny on 2/27/16.
 */
public class AutoFragmentPagerAdapter extends FragmentPagerAdapter {
    protected IAdapterItemAccessor<Fragment> itemAccessor;

    public AutoFragmentPagerAdapter(FragmentManager fragmentManager, IAdapterItemAccessor<Fragment> itemAccessor) {
        super(fragmentManager);
        this.itemAccessor = itemAccessor;
// Path: autoadapter/src/main/java/com/benny/library/autoadapter/listener/DataSetChangedNotifier.java
// public interface DataSetChangedNotifier {
//     void notifyDataSetChanged();
// }


// Path: autoadapter/src/main/java/com/benny/library/autoadapter/AutoFragmentPagerAdapter.java
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.benny.library.autoadapter.listener.DataSetChangedNotifier;

package com.benny.library.autoadapter;



/**
 * Created by benny on 2/27/16.
 */
public class AutoFragmentPagerAdapter extends FragmentPagerAdapter {
    protected IAdapterItemAccessor<Fragment> itemAccessor;

    public AutoFragmentPagerAdapter(FragmentManager fragmentManager, IAdapterItemAccessor<Fragment> itemAccessor) {
        super(fragmentManager);
        this.itemAccessor = itemAccessor;
        itemAccessor.setDataSetChangedNotifier(new DataSetChangedNotifier() {