@@ -0,0 +1,2292 @@
+package com.satsumasoftware.timetable.ui.adapter;%0A%0Aimport android.support.v7.widget.RecyclerView;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0Aimport android.widget.TextView;%0A%0Aimport com.satsumasoftware.timetable.R;%0Aimport com.satsumasoftware.timetable.framework.Term;%0A%0Aimport org.threeten.bp.format.DateTimeFormatter;%0A%0Aimport java.util.ArrayList;%0A%0Apublic class TermsAdapter extends RecyclerView.Adapter%3CTermsAdapter.TermsViewHolder%3E %7B%0A%0A    private ArrayList%3CTerm%3E mTerms;%0A%0A    public TermsAdapter(ArrayList%3CTerm%3E terms) %7B%0A        mTerms = terms;%0A    %7D%0A%0A    @Override%0A    public TermsViewHolder onCreateViewHolder(ViewGroup parent, int viewType) %7B%0A        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_class_time, parent, false);%0A        return new TermsViewHolder(view);%0A    %7D%0A%0A    @Override%0A    public void onBindViewHolder(TermsViewHolder holder, int position) %7B%0A        Term term = mTerms.get(position);%0A%0A        holder.mName.setText(term.getName());%0A%0A        DateTimeFormatter formatter = DateTimeFormatter.ofPattern(%22d MMMM yyyy%22);%0A        String datesText = term.getStartDate().format(formatter) + %22 - %22 +%0A                term.getEndDate().format(formatter);%0A        holder.mDates.setText(datesText);%0A    %7D%0A%0A    @Override%0A    public int getItemCount() %7B%0A        return mTerms.size();%0A    %7D%0A%0A    public class TermsViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener %7B%0A%0A        TextView mName, mDates;%0A%0A        TermsViewHolder(View itemView) %7B%0A            super(itemView);%0A            itemView.setOnClickListener(this);%0A            mName = (TextView) itemView.findViewById(R.id.time);%0A            mDates = (TextView) itemView.findViewById(R.id.day);%0A        %7D%0A%0A        @Override%0A        public void onClick(View view) %7B%0A            if (mOnEntryClickListener != null) %7B%0A                mOnEntryClickListener.onEntryClick(view, getLayoutPosition());%0A            %7D%0A        %7D%0A    %7D%0A%0A    private OnEntryClickListener mOnEntryClickListener;%0A%0A    public interface OnEntryClickListener %7B%0A        void onEntryClick(View view, int position);%0A    %7D%0A%0A    public void setOnEntryClickListener(OnEntryClickListener onEntryClickListener) %7B%0A        mOnEntryClickListener = onEntryClickListener;%0A    %7D%0A%0A%7D%0A

Create a RecyclerView adapter for displaying terms