leanback/src/main/java/androidx/leanback/widget/ClassPresenterSelector.java
public ClassPresenterSelector addClassPresenterSelector(Class<?> cls,
            PresenterSelector presenterSelector) {
        mClassMap.put(cls, presenterSelector);
        Presenter[] innerPresenters = presenterSelector.getPresenters();
        for (int i = 0; i < innerPresenters.length; i++)
        if (!mPresenters.contains(innerPresenters[i])) {
            mPresenters.add(innerPresenters[i]);
        }
        return this;
    }
/**
     * Sets a presenter selector to be used for the given class.
     * @param cls The data model class to be rendered.
     * @param presenterSelector The presenter selector that finds the right presenter for a given
     *                          class.
     * @return This ClassPresenterSelector object.
     */
Sets a presenter selector to be used for the given class.
@param cls The data model class to be rendered.
@param presenterSelector The presenter selector that finds the right presenter for a given
class.
@return This ClassPresenterSelector object.
Sets a presenter selector to be used for the given class . @param cls The data model class to be rendered . @param presenterSelector The presenter selector that finds the right presenter for a given class . @return This ClassPresenterSelector object .
public ClassPresenterSelector addClassPresenterSelector(Class<?> cls,
            PresenterSelector presenterSelector) {
        mClassMap.put(cls, presenterSelector);
        Presenter[] innerPresenters = presenterSelector.getPresenters();
        for (int i = 0; i < innerPresenters.length; i++)
        if (!mPresenters.contains(innerPresenters[i])) {
            mPresenters.add(innerPresenters[i]);
        }
        return this;
    }
public ClassPresenterSelector addClassPresenterSelector ( Class < ? > cls , PresenterSelector presenterSelector ) { mClassMap . put ( cls , presenterSelector ) ; Presenter [ ] innerPresenters = presenterSelector . getPresenters ( ) ; for ( int i = 0 ; i < innerPresenters . length ; i ++ ) if ( ! mPresenters . contains ( innerPresenters [ i ] ) ) { mPresenters . add ( innerPresenters [ i ] ) ; } return this ; }
Sets a presenter selector to be used for the given class.
Sets a presenter selector to be used for the given class .