// 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 BaseMixtureAdapter<T> extends BaseNormalAdapter<T, BaseViewHolder> {

    public BaseMixtureAdapter() {
    }

    public BaseMixtureAdapter(ItemClickListener itemClickListener) {
        super(itemClickListener);
    }

    public BaseMixtureAdapter(ItemLongListener itemLongListener) {
        super(itemLongListener);
    }

    public BaseMixtureAdapter(ItemClickListener itemClickListener, ItemLongListener itemLongListener) {
        super(itemClickListener, itemLongListener);
    }

    @Override
    public final void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
// 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/BaseMixtureAdapter.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 BaseMixtureAdapter<T> extends BaseNormalAdapter<T, BaseViewHolder> {

    public BaseMixtureAdapter() {
    }

    public BaseMixtureAdapter(ItemClickListener itemClickListener) {
        super(itemClickListener);
    }

    public BaseMixtureAdapter(ItemLongListener itemLongListener) {
        super(itemLongListener);
    }

    public BaseMixtureAdapter(ItemClickListener itemClickListener, ItemLongListener itemLongListener) {
        super(itemClickListener, itemLongListener);
    }

    @Override
    public final void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
        if (!(holder instanceof FooterViewHolder)) {