title: Filter RecyclerView by value inside object
body: <p>I have a RecyclerView that returns a list of objects to a fragment, I want the fragment to only show objects that has a specific value in one of their variables. How can I do that?</p>
  
  <p>This is how I call my adapter on the fragment:</p>
  
  <pre><code>RecyclerView recyclerview = view.findViewById(R.id.list);
  
  if (recyclerview != null) {
      Context context = view.getContext();
      adapter = new MyHospitalHistoryRecyclerViewAdapter(DummyContent.ITEMS, mListener);
      recyclerview.setAdapter(adapter);
  }
  
  return view;
  </code></pre>
  
  <p><code>DummyContent.ITEMS</code> is the <code>DummyItems</code>-type list.</p>
  
  <p>Does anyone know how I can do this? I have tested everything I know</p>