Back to project page android-tools.
The source code is released under:
MIT License
If you think the Android project android-tools listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.comfreeze.lib; /*from w w w .j a v a 2 s . c o m*/ import android.support.v4.app.Fragment; import java.util.LinkedHashMap; import java.util.Set; public class FragmentMap { private static final String TAG = FragmentMap.class.getSimpleName(); private LinkedHashMap<Integer, Fragment> map = new LinkedHashMap<Integer, Fragment>(); public static FragmentMap instance() { FragmentMap map = new FragmentMap(); return map; } public FragmentMap add(int key, Fragment fragment) { this.map.put(key, fragment); return this; } public Fragment get(int key) { return this.map.get(key); } public LinkedHashMap<Integer, Fragment> build() { return this.map; } public Set<Integer> keySet() { return this.map.keySet(); } }