Code example for SparseArray

Methods: clone, get

0
            return new UiSelector(by);
        return null; 
    } 
 
    UiSelector getContainerSelector() { 
        UiSelector by = (UiSelector)mSelectorAttributes.get(UiSelector.SELECTOR_CONTAINER, null);
        if(by != null)
            return new UiSelector(by);
        return null; 
    } 
 
    UiSelector getParentSelector() { 
        UiSelector by = (UiSelector) mSelectorAttributes.get(UiSelector.SELECTOR_PARENT, null);
        if(by != null)
            return new UiSelector(by);
        return null; 
    } 
 
    int getInstance() { 
        return getInt(UiSelector.SELECTOR_INSTANCE);
    }