/*
 * Copyright (C) 2014 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
package android.support.v17.leanback.widget;

import static android.support.v17.leanback.widget.ObjectAdapter.NO_ID;

/**
 * A header item is an item that describes metadata of {@link Row}, such as a category
 * of media items.  Developer may override this class to add more information.
 */
public class HeaderItem {

    private final long mId;
    private final String mName;

    /**
     * Create a header item.  All fields are optional.
     * @deprecated Use {@link #HeaderItem(long, String)} instead.
     */
    public HeaderItem(long id, String name, String imageUri) {
        this(id, name);
    }

    /**
     * Create a header item.  All fields are optional.
     */
    public HeaderItem(long id, String name) {
        mId = id;
        mName = name;
    }

    /**
     * Create a header item.  All fields are optional.
     * @deprecated Use {@link #HeaderItem(String)} instead.
     */
    public HeaderItem(String name, String imageUri) {
        this(name);
    }

    /**
     * Create a header item.
     */
    public HeaderItem(String name) {
        this(NO_ID, name);
    }

    /**
     * Returns a unique identifier for this item.
     */
    public final long getId() {
        return mId;
    }

    /**
     * Returns the name of this header item.
     */
    public final String getName() {
        return mName;
    }

    /**
     * Returns the icon for this header item.
     * @deprecated Returns null
     */
    public final String getImageUri() {
        return null;
    }
}

@@ -1055,537 +1055,94 @@
    *
- @deprecated Use %7B@link #HeaderItem(long, String)%7D instead.%0A     */%0A    public HeaderItem(long id, String name, String imageUri) %7B%0A        this(id, name);%0A    %7D%0A%0A    /**%0A     * Create a header item.  All fields are optional.%0A     */%0A    public HeaderItem(long id, String name) %7B%0A        mId = id;%0A        mName = name;%0A    %7D%0A%0A    /**%0A     * Create a header item.  All fields are optional.%0A     * @deprecated Use %7B@link #HeaderItem(String)%7D instead.%0A     */%0A    public HeaderItem(String name, String imageUri) %7B%0A        this(name)
+/%0A    public HeaderItem(long id, String name) %7B%0A        mId = id;%0A        mName = name
 ;%0A  
@@ -1515,169 +1515,7 @@
    %7D
-%0A%0A    /**%0A     * Returns the icon for this header item.%0A     * @deprecated Returns null%0A     */%0A    public final String getImageUri() %7B%0A        return null;%0A    %7D
 %0A%7D%0A

Remove deprecated api.