// 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/viewholder/FooterViewHolder.java
// public class FooterViewHolder extends BaseViewHolder {
// 
//     public FooterViewHolder(View itemView) {
//         super(itemView);
//     }
// 
//     public FooterViewHolder(View itemView, ItemClickListener itemClickListener) {
//         super(itemView, itemClickListener);
//     }
// 
//     public FooterViewHolder(View itemView, ItemLongListener itemLongListener) {
//         super(itemView, itemLongListener);
//     }
// 
//     public FooterViewHolder(View itemView, ItemClickListener itemClickListener, ItemLongListener itemLongListener) {
//         super(itemView, itemClickListener, itemLongListener);
//     }
// }


import androidx.recyclerview.widget.RecyclerView;
import com.dreamliner.rvhelper.interfaces.ItemClickListener;
import com.dreamliner.rvhelper.interfaces.ItemLongListener;
import com.dreamliner.rvhelper.viewholder.BaseViewHolder;
import com.dreamliner.rvhelper.viewholder.FooterViewHolder;
package com.dreamliner.rvhelper.adapter;



/**
 * @author chenzj
 * @Title: BaseAdapter
 * @Description: 类的描述 -
 * @date 2016/6/12 09:05
 * @email admin@chenzhongjin.cn
 */
public abstract class BaseAdapter<T, VH extends BaseViewHolder> extends BaseNormalAdapter<T, VH> {

    public BaseAdapter() {
        super();
    }

    public BaseAdapter(ItemClickListener itemClickListener) {
        super();
        mItemClickListener = itemClickListener;
    }

    public BaseAdapter(ItemLongListener itemLongListener) {
        super();
        mItemLongListener = itemLongListener;
    }

// 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/viewholder/FooterViewHolder.java
// public class FooterViewHolder extends BaseViewHolder {
// 
//     public FooterViewHolder(View itemView) {
//         super(itemView);
//     }
// 
//     public FooterViewHolder(View itemView, ItemClickListener itemClickListener) {
//         super(itemView, itemClickListener);
//     }
// 
//     public FooterViewHolder(View itemView, ItemLongListener itemLongListener) {
//         super(itemView, itemLongListener);
//     }
// 
//     public FooterViewHolder(View itemView, ItemClickListener itemClickListener, ItemLongListener itemLongListener) {
//         super(itemView, itemClickListener, itemLongListener);
//     }
// }


// Path: library/src/main/java/com/dreamliner/rvhelper/adapter/BaseAdapter.java
import androidx.recyclerview.widget.RecyclerView;
import com.dreamliner.rvhelper.interfaces.ItemClickListener;
import com.dreamliner.rvhelper.interfaces.ItemLongListener;
import com.dreamliner.rvhelper.viewholder.BaseViewHolder;
import com.dreamliner.rvhelper.viewholder.FooterViewHolder;

package com.dreamliner.rvhelper.adapter;



/**
 * @author chenzj
 * @Title: BaseAdapter
 * @Description: 类的描述 -
 * @date 2016/6/12 09:05
 * @email admin@chenzhongjin.cn
 */
public abstract class BaseAdapter<T, VH extends BaseViewHolder> extends BaseNormalAdapter<T, VH> {

    public BaseAdapter() {
        super();
    }

    public BaseAdapter(ItemClickListener itemClickListener) {
        super();
        mItemClickListener = itemClickListener;
    }

    public BaseAdapter(ItemLongListener itemLongListener) {
        super();
        mItemLongListener = itemLongListener;
    }

    public BaseAdapter(ItemClickListener itemClickListener, ItemLongListener itemLongListener) {