// Path: app/src/main/java/com/livingstoneapp/helpers/RecyclerViewOnClickListener.java
// public interface RecyclerViewOnClickListener<T> {
//     void onItemClick(T item);
// }
// 
// Path: app/src/main/java/com/livingstoneapp/helpers/RecyclerViewOnClickListenerInternal.java
// public interface RecyclerViewOnClickListenerInternal {
//     void onItemClick(int position);
// }
// 
// Path: app/src/main/java/com/livingstoneapp/models/URIPermissionPattern.java
// public class URIPermissionPattern implements Parcelable {
//     private String mPath;
//     private String mType;
// 
//     public URIPermissionPattern(String mPath, String mType) {
//         this.mPath = mPath;
//         this.mType = mType;
//     }
// 
//     public String getPath() {
//         return mPath;
//     }
// 
//     public String getType() {
//         return mType;
//     }
// 
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeString(this.mPath);
//         dest.writeString(this.mType);
//     }
// 
//     protected URIPermissionPattern(Parcel in) {
//         this.mPath = in.readString();
//         this.mType = in.readString();
//     }
// 
//     public static final Parcelable.Creator<URIPermissionPattern> CREATOR = new Parcelable.Creator<URIPermissionPattern>() {
//         public URIPermissionPattern createFromParcel(Parcel source) {
//             return new URIPermissionPattern(source);
//         }
// 
//         public URIPermissionPattern[] newArray(int size) {
//             return new URIPermissionPattern[size];
//         }
//     };
// }


import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.List;
import butterknife.Bind;
import butterknife.ButterKnife;
import com.livingstoneapp.R;
import com.livingstoneapp.helpers.RecyclerViewOnClickListener;
import com.livingstoneapp.helpers.RecyclerViewOnClickListenerInternal;
import com.livingstoneapp.models.URIPermissionPattern;
    }

    @Override
    public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return
                new ViewHolder(
                        LayoutInflater.from(parent.getContext())
                                .inflate(R.layout.content_provider_uri_permission_pattern_item_adapter_layout, parent, false),
                        position -> {
                            if (mListener != null) {
                                mListener.onItemClick(mData.get(position));
                            }
                        });
    }

    @Override
    public void onBindViewHolder(ViewHolder holder, int position) {
        URIPermissionPattern upp = mData.get(position);

        holder.tvPath.setText(upp.getPath());
        holder.tvType.setText(upp.getType());
    }

    @Override
    public int getItemCount() {
        return mData.size();
    }

    public static class ViewHolder extends RecyclerView.ViewHolder {

// Path: app/src/main/java/com/livingstoneapp/helpers/RecyclerViewOnClickListener.java
// public interface RecyclerViewOnClickListener<T> {
//     void onItemClick(T item);
// }
// 
// Path: app/src/main/java/com/livingstoneapp/helpers/RecyclerViewOnClickListenerInternal.java
// public interface RecyclerViewOnClickListenerInternal {
//     void onItemClick(int position);
// }
// 
// Path: app/src/main/java/com/livingstoneapp/models/URIPermissionPattern.java
// public class URIPermissionPattern implements Parcelable {
//     private String mPath;
//     private String mType;
// 
//     public URIPermissionPattern(String mPath, String mType) {
//         this.mPath = mPath;
//         this.mType = mType;
//     }
// 
//     public String getPath() {
//         return mPath;
//     }
// 
//     public String getType() {
//         return mType;
//     }
// 
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeString(this.mPath);
//         dest.writeString(this.mType);
//     }
// 
//     protected URIPermissionPattern(Parcel in) {
//         this.mPath = in.readString();
//         this.mType = in.readString();
//     }
// 
//     public static final Parcelable.Creator<URIPermissionPattern> CREATOR = new Parcelable.Creator<URIPermissionPattern>() {
//         public URIPermissionPattern createFromParcel(Parcel source) {
//             return new URIPermissionPattern(source);
//         }
// 
//         public URIPermissionPattern[] newArray(int size) {
//             return new URIPermissionPattern[size];
//         }
//     };
// }


// Path: app/src/main/java/com/livingstoneapp/adapters/URIPermissionPatternsAdapter.java
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.List;
import butterknife.Bind;
import butterknife.ButterKnife;
import com.livingstoneapp.R;
import com.livingstoneapp.helpers.RecyclerViewOnClickListener;
import com.livingstoneapp.helpers.RecyclerViewOnClickListenerInternal;
import com.livingstoneapp.models.URIPermissionPattern;

    }

    @Override
    public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return
                new ViewHolder(
                        LayoutInflater.from(parent.getContext())
                                .inflate(R.layout.content_provider_uri_permission_pattern_item_adapter_layout, parent, false),
                        position -> {
                            if (mListener != null) {
                                mListener.onItemClick(mData.get(position));
                            }
                        });
    }

    @Override
    public void onBindViewHolder(ViewHolder holder, int position) {
        URIPermissionPattern upp = mData.get(position);

        holder.tvPath.setText(upp.getPath());
        holder.tvType.setText(upp.getType());
    }

    @Override
    public int getItemCount() {
        return mData.size();
    }

    public static class ViewHolder extends RecyclerView.ViewHolder {

        private RecyclerViewOnClickListenerInternal mListener;