// Path: library/src/main/java/com/dreamliner/rvhelper/interfaces/ItemClickListener.java
// public interface ItemClickListener {
//     public void onItemClick(View view, int position);
// }
// 
// Path: library/src/main/java/com/dreamliner/rvhelper/interfaces/ItemLongListener.java
// public interface ItemLongListener {
//     boolean onLongClick(View view, int position);
// }  
// 
// Path: library/src/main/java/com/dreamliner/rvhelper/viewholder/BaseViewHolder.java
// public class BaseViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener, View.OnLongClickListener {
// 
//     private ItemClickListener mItemClickListener;
//     private ItemLongListener mItemLongListener;
// 
//     public BaseViewHolder(View itemView) {
//         super(itemView);
//     }
// 
//     public BaseViewHolder(View itemView, ItemClickListener itemClickListener) {
//         super(itemView);
//         mItemClickListener = itemClickListener;
//     }
// 
//     public BaseViewHolder(View itemView, ItemLongListener itemLongListener) {
//         super(itemView);
//         mItemLongListener = itemLongListener;
//     }
// 
//     public BaseViewHolder(View itemView, ItemClickListener itemClickListener, ItemLongListener itemLongListener) {
//         super(itemView);
//         mItemClickListener = itemClickListener;
//         mItemLongListener = itemLongListener;
//     }
// 
//     @Override
//     public void onClick(View v) {
//         if (null != mItemClickListener) {
//             int position = getAdapterPosition();
//             if (position != RecyclerView.NO_POSITION) {
//                 mItemClickListener.onItemClick(v, position);
//             }
//         }
//     }
// 
//     @Override
//     public boolean onLongClick(View v) {
//         if (null != mItemLongListener) {
//             int position = getAdapterPosition();
//             return position == RecyclerView.NO_POSITION || mItemLongListener.onLongClick(v, position);
//         }
//         return false;
//     }
// }


import com.dreamliner.rvhelper.interfaces.ItemClickListener;
import com.dreamliner.rvhelper.interfaces.ItemLongListener;
import com.dreamliner.rvhelper.viewholder.BaseViewHolder;
package com.dreamliner.rvhelper.adapter;


/**
 * Created by chenzj on 2017/12/20.
 */

public abstract class BaseNormalAdapter<T, VH extends BaseViewHolder> extends BaseDataAdapter<T, BaseViewHolder> {

    //普通adapter相关点击接口
    protected ItemClickListener mItemClickListener;
// Path: library/src/main/java/com/dreamliner/rvhelper/interfaces/ItemClickListener.java
// public interface ItemClickListener {
//     public void onItemClick(View view, int position);
// }
// 
// Path: library/src/main/java/com/dreamliner/rvhelper/interfaces/ItemLongListener.java
// public interface ItemLongListener {
//     boolean onLongClick(View view, int position);
// }  
// 
// Path: library/src/main/java/com/dreamliner/rvhelper/viewholder/BaseViewHolder.java
// public class BaseViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener, View.OnLongClickListener {
// 
//     private ItemClickListener mItemClickListener;
//     private ItemLongListener mItemLongListener;
// 
//     public BaseViewHolder(View itemView) {
//         super(itemView);
//     }
// 
//     public BaseViewHolder(View itemView, ItemClickListener itemClickListener) {
//         super(itemView);
//         mItemClickListener = itemClickListener;
//     }
// 
//     public BaseViewHolder(View itemView, ItemLongListener itemLongListener) {
//         super(itemView);
//         mItemLongListener = itemLongListener;
//     }
// 
//     public BaseViewHolder(View itemView, ItemClickListener itemClickListener, ItemLongListener itemLongListener) {
//         super(itemView);
//         mItemClickListener = itemClickListener;
//         mItemLongListener = itemLongListener;
//     }
// 
//     @Override
//     public void onClick(View v) {
//         if (null != mItemClickListener) {
//             int position = getAdapterPosition();
//             if (position != RecyclerView.NO_POSITION) {
//                 mItemClickListener.onItemClick(v, position);
//             }
//         }
//     }
// 
//     @Override
//     public boolean onLongClick(View v) {
//         if (null != mItemLongListener) {
//             int position = getAdapterPosition();
//             return position == RecyclerView.NO_POSITION || mItemLongListener.onLongClick(v, position);
//         }
//         return false;
//     }
// }


// Path: library/src/main/java/com/dreamliner/rvhelper/adapter/BaseNormalAdapter.java
import com.dreamliner.rvhelper.interfaces.ItemClickListener;
import com.dreamliner.rvhelper.interfaces.ItemLongListener;
import com.dreamliner.rvhelper.viewholder.BaseViewHolder;

package com.dreamliner.rvhelper.adapter;


/**
 * Created by chenzj on 2017/12/20.
 */

public abstract class BaseNormalAdapter<T, VH extends BaseViewHolder> extends BaseDataAdapter<T, BaseViewHolder> {

    //普通adapter相关点击接口
    protected ItemClickListener mItemClickListener;
    protected ItemLongListener mItemLongListener;