chromium/chrome/browser/download/internal/android/java/src/org/chromium/chrome/browser/download/home/list/ListItemModel.java

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package org.chromium.chrome.browser.download.home.list;

import org.chromium.ui.modelutil.PropertyModel;

/**
 * This model represents the data required to build a list UI around a set of {@link ListItem}s.
 * This includes (1) a {@link BatchListModel} implementation and (2) exposing a
 * {@link PropertyModel} for shared item properties and general list information.
 */
public class ListItemModel extends BatchListModel<ListItem> {
    private final PropertyModel mListProperties = new PropertyModel(ListProperties.ALL_KEYS);

    /**
     * @return A {@link PropertyModel} instance, which is a set of shared properties for the
     *         list.
     */
    public PropertyModel getProperties() {
        return mListProperties;
    }
}