All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.solovyev.android.list.ListItemOnClickDataImpl Maven / Gradle / Ivy

There is a newer version: 1.1.18
Show newest version
package org.solovyev.android.list;

import android.widget.ListView;
import org.jetbrains.annotations.NotNull;

/**
 * User: serso
 * Date: 5/5/12
 * Time: 8:17 PM
 */
public class ListItemOnClickDataImpl implements ListItemOnClickData {

    @NotNull
    private T dataObject;

    @NotNull
    private ListAdapter adapter;

    @NotNull
    private ListView listView;

    public ListItemOnClickDataImpl(@NotNull T dataObject, @NotNull ListAdapter adapter, @NotNull ListView listView) {
        this.dataObject = dataObject;
        this.adapter = adapter;
        this.listView = listView;
    }

    @NotNull
    @Override
    public T getDataObject() {
        return this.dataObject;
    }

    @NotNull
    @Override
    public ListAdapter getAdapter() {
        return this.adapter;
    }

    @NotNull
    @Override
    public ListView getListView() {
        return this.listView;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy