Code example for SparseArray

Methods: clear

0
        mDynamicSeed = seed;
    } 
 
    public void reset(int seed) {
        mDynamicIds.clear();
        mRevDynamicIds.clear();
        mDynamicSeed = seed;
    } 
 
    /** 
     * Returns a dynamic integer for the given resource type/name, creating it if it doesn't 
     * already exist. 
     * 
     * @param type the type of the resource 
     * @param name the name of the resource 
     * @return an integer. 
     */ 
    public Integer getId(ResourceType type, String name) {
        return getId(Pair.of(type, name));
    }