Code example for LinkedHashMap

Methods: size

0
            Log.d(TAG, String.format("Found %d sections.", mSections.size()));
        } 
    } 
 
    private int getSectionCount() { 
        return mSections.size();
    } 
 
    private String sectionTitleForPosition(int position) {
        String title = null;
 
        Set<Entry<String, Integer>> entrySet = mSections.entrySet();
        for(Entry<String, Integer> entry : entrySet) {
            if(entry.getValue() == position) {
                title = entry.getKey();
                break; 
            } 
        } 
 
        return title;
    }