Code example for Pair

0
	public SectionedFragmentPagerAdapter(FragmentManager fm) {
		super(fm);
	} 
	 
	public void add(T f, String title) {
		fragments.add(new Pair<T, String>(f, title));
	} 
	 
	@Override 
	public Fragment getItem(int position) {
		return fragments.get(position).first;
	} 
	 
	//http://stackoverflow.com/questions/7263291/viewpager-pageradapter-not-updating-the-view/7287121#7287121 
	@Override 
	public int getItemPosition(Object object) {
		return POSITION_NONE; 
	} 
 
 
	@Override