leanback/src/main/java/androidx/leanback/widget/ClassPresenterSelector.java
public ClassPresenterSelector addClassPresenter(Class<?> cls, Presenter presenter) {
        mClassMap.put(cls, presenter);
        if (!mPresenters.contains(presenter)) {
            mPresenters.add(presenter);
        }
        return this;
    }
/**
     * Sets a presenter to be used for the given class.
     * @param cls The data model class to be rendered.
     * @param presenter The presenter that renders the objects of the given class.
     * @return This ClassPresenterSelector object.
     */
Sets a presenter to be used for the given class.
@param cls The data model class to be rendered.
@param presenter The presenter that renders the objects of the given class.
@return This ClassPresenterSelector object.
Sets a presenter to be used for the given class . @param cls The data model class to be rendered . @param presenter The presenter that renders the objects of the given class . @return This ClassPresenterSelector object .
public ClassPresenterSelector addClassPresenter(Class<?> cls, Presenter presenter) {
        mClassMap.put(cls, presenter);
        if (!mPresenters.contains(presenter)) {
            mPresenters.add(presenter);
        }
        return this;
    }
public ClassPresenterSelector addClassPresenter ( Class < ? > cls , Presenter presenter ) { mClassMap . put ( cls , presenter ) ; if ( ! mPresenters . contains ( presenter ) ) { mPresenters . add ( presenter ) ; } return this ; }
Sets a presenter to be used for the given class.
Sets a presenter to be used for the given class .