title: JAVA 8 filter list of object with any matching property
body: <p>My requirement is to filter a list of objects by a string matching any of the properties.
  For example, let say <code>Contact</code> class has three properties: street, city, phone.</p>
  
  <p>I am aware of how java stream filter works, where i have to compare the input string with each property as below:</p>
  
  <pre><code>contactList.stream().filter(contact -&gt; contact.getStreet().equals("dubai") || 
                              contact.getCity().equals("dubai") || .......).collect(Collectors.toList());
  </code></pre>
  
  <p>However, if a class has 20+ properties and size of list 80,000+, comparing each property with the input string would affect the performance. So my question is, does Java or any other library support filtering the list with any matching property? Something as below:</p>
  
  <pre><code>contactList.stream().filter(contact -&gt; contact.anyProperty.equals("dubai").collect(Collectors.toList());
  </code></pre>
  
  <p>Can someone help me on this, thanks.</p>