Code example for TreeMap

Methods: entrySet

0
    public int size() { 
        return mDetails.size();
    } 
 
    public Iterator<Entry<Integer, Object>> iterator() {
        return mDetails.entrySet().iterator();
    } 
 
    public void setUnit(int index, int unit) {
        mUnits.put(index, unit);
    } 
 
    public boolean hasUnit(int index) {
        return mUnits.containsKey(index);
    } 
 
    public int getUnit(int index) {
        return mUnits.get(index);
    } 
 
    private static void setExifData(MediaDetails details, ExifInterface exif, String tag,