// Path: library/src/main/java/com/dreamliner/rvhelper/interfaces/OnItemClickListener.java
// public interface OnItemClickListener<T> {
//     void onItemClick(View v, int position, T t);
// }
// 
// Path: library/src/main/java/com/dreamliner/rvhelper/interfaces/OnItemLongClickListener.java
// public interface OnItemLongClickListener<T> {
//     boolean onItemLongClick(View v, int position, T t);
// }


import androidx.databinding.ViewDataBinding;
import androidx.recyclerview.widget.RecyclerView;
import android.view.View;
import com.dreamliner.rvhelper.interfaces.OnItemClickListener;
import com.dreamliner.rvhelper.interfaces.OnItemLongClickListener;
package com.dreamliner.rvhelper.viewholder;




/**
 * Created by chenzj on 2017/3/21.
 */

public class BaseBindViewHolder<Binding extends ViewDataBinding, T> extends RecyclerView.ViewHolder implements View.OnClickListener,
        View.OnLongClickListener {

    private final Binding mBinding;

    private T mItem;
    private OnItemClickListener<T> mOnItemClickListener;
// Path: library/src/main/java/com/dreamliner/rvhelper/interfaces/OnItemClickListener.java
// public interface OnItemClickListener<T> {
//     void onItemClick(View v, int position, T t);
// }
// 
// Path: library/src/main/java/com/dreamliner/rvhelper/interfaces/OnItemLongClickListener.java
// public interface OnItemLongClickListener<T> {
//     boolean onItemLongClick(View v, int position, T t);
// }


// Path: library/src/main/java/com/dreamliner/rvhelper/viewholder/BaseBindViewHolder.java
import androidx.databinding.ViewDataBinding;
import androidx.recyclerview.widget.RecyclerView;
import android.view.View;
import com.dreamliner.rvhelper.interfaces.OnItemClickListener;
import com.dreamliner.rvhelper.interfaces.OnItemLongClickListener;

package com.dreamliner.rvhelper.viewholder;




/**
 * Created by chenzj on 2017/3/21.
 */

public class BaseBindViewHolder<Binding extends ViewDataBinding, T> extends RecyclerView.ViewHolder implements View.OnClickListener,
        View.OnLongClickListener {

    private final Binding mBinding;

    private T mItem;
    private OnItemClickListener<T> mOnItemClickListener;
    private OnItemLongClickListener<T> mOnItemLongClickListener;