Code example for SparseArray

0
 
    private final List<RepositoryId> repos;
 
    private final int[] issues;
 
    private final SparseArray<IssueFragment> fragments = new SparseArray<IssueFragment>();
 
    private final IssueStore store;
 
    /** 
     * @param activity 
     * @param repoIds 
     * @param issueNumbers 
     * @param issueStore 
     */ 
    public IssuesPagerAdapter(SherlockFragmentActivity activity,
            List<RepositoryId> repoIds, int[] issueNumbers,
            IssueStore issueStore) {
        super(activity);
 
        repos = repoIds;