I have a class that extend RecyclerView.Adapter.
public class MainAdapter extends RecyclerView.Adapter<MainAdapter.ViewHolder> {
.
ArrayList<String> mDataset;
.
.
.
I added a new public member function to this class to return mDataset
public ArrayList<String> getmDataset() {
return mDataset;
}
the problem is when instantiate MainAdapter I cannot a reference getmDataset() in this class,
when I type new MainAdapter.getmDataset() it shows cannot resolve method error.
How can I reference getmDataset() ???