title: Android get data from each ViewHolder of FirebaseRecyclerAdapter
body: <p>How do I get data from each ViewHolder that has "false" for the data?</p>
  
  <p>This is my adapter initialization</p>
  
  <pre><code>mAdapter = new FirebaseRecyclerAdapter&lt;Trace, TraceViewHolder&gt;(Trace.class, R.layout.fragment_trace_item, TraceViewHolder.class, mDatabase))
  {
      @Override
      protected void populateViewHolder(final TraceViewHolder viewHolder, final Trace model, final int position)
      {
          if(viewHolder.isAvailable == true)
          {
              Toast.makeText(context, "true", Toast.LENGTH_SHORT).show();
          }
          else
          {
              Toast.makeText(context, "false", Toast.LENGTH_SHORT).show();
          }
      }
  }
  </code></pre>
  
  <p>And this is my ViewHolder class</p>
  
  <pre><code>public class TraceViewHolder extends RecyclerView.ViewHolder
  {
      public boolean isAvailable;
  
      public TraceViewHolder(View itemView)
      {
          super(itemView);
      }
  
      public void bindToTrace(final Trace trace, final Context context)
      {
          if(trace.value.equals("one")
          {
              isAvailable = true;
          }
          else(trace.value.equals("one")
          {
              isAvailable = false;
          }
      }
  }
  </code></pre>
  
  <p>Here, I have RecyclerView that has items that has either "one" or "two". What I am trying to do is to check if each ViewHolder (each item) has the value "one" or "two" and if the item has "one", it should toast "true", and if the item has "two", it should toast "false".</p>
  
  <p>But when I run the program, it only toast "false" for all items. </p>
  
  <p>Does anyone know how to do this?</p>