Code example for SparseArray

Methods: clone, get

0
    static final int SELECTOR_CONTAINER = 20;
    static final int SELECTOR_PATTERN = 21;
    static final int SELECTOR_PARENT = 22;
    static final int SELECTOR_COUNT = 23;
 
    private SparseArray<Object> mSelectorAttributes = new SparseArray<Object>();
    public static final String LOG_TAG = "ByClass";
 
    public UiSelector() { 
    } 
 
    protected UiSelector(UiSelector by) {
        mSelectorAttributes = by.cloneSelectors().mSelectorAttributes;
    } 
 
    protected UiSelector cloneSelectors() { 
        UiSelector ret = new UiSelector();
        ret.mSelectorAttributes = mSelectorAttributes.clone();
        return ret;
    } 
 
    static UiSelector patternBuilder(UiSelector selector) {
        if(!selector.hasPatternSelector()) {