title: On the Adapter class How to get key and value from HashMap
body: <p>On my <code>RecyclerViewAdapter</code> class i'm passing <code>HashMap&lt;String,ArrayList&lt;Custom&gt;&gt;</code> as data, now i want to get key &amp; value for every position but i don't know how i should do this! thanks in advance</p>
  
  <pre><code>public class Main_Recycler_Single_Row extends RecyclerView.Adapter&lt;Main_Recycler_Single_Row.ViewHolder&gt; {
  
  
  
  private Context mContext;
  private HashMap&lt;String,ArrayList&lt;Products&gt;&gt; dataSet;
  
  public Main_Recycler_Single_Row(Context mContext, HashMap&lt;String,ArrayList&lt;Products&gt;&gt; mDataSet) {
      this.mContext = mContext;
      this.dataSet = mDataSet;
  
  } @Override
  public void onBindViewHolder(@NonNull final ViewHolder holder, int position) {
  
      Map.Entry&lt;String,ArrayList&lt;Products&gt;&gt; entry=(Map.Entry&lt;String,ArrayList&lt;Products&gt;&gt;) dataSet.entrySet();//this line is my problem!
  
  
      holder.header.setText(entry.getKey());
  
      holder.mRecyclerView.setLayoutManager(new LinearLayoutManager(mContext,LinearLayoutManager.HORIZONTAL,false));
      holder.mRecyclerView.setHasFixedSize(true);
      holder.mRecyclerView.setAdapter(new Main_Recycler_Sinle_Item(mContext,entry.getValue()));
  
  }
  </code></pre>