title: Multiple filters applied to a single list in Java 8+
body: <p>How can be achieved to pass a "list of filters" to a stream in Java 8, instead of applying them individually as illustrated in the following example?</p>
  
  <p><a href="https://howtodoinjava.com/java8/stream-multiple-filters-example/" rel="nofollow noreferrer">https://howtodoinjava.com/java8/stream-multiple-filters-example/</a></p>
  
  <p>The purpose would be to dynamically create a list of filters, one way would be to iterate through a list of filters and apply it to the list to be filtered.</p>
  
  <p>Any other idea?</p>
  
  <p>UPDATE:</p>
  
  <p>Thanks for the comment of the predicate:</p>
  
  <pre><code>   final Predicate&lt;?&gt; predicate = new Predicate&lt;?&gt;() {
  
          @Override 
          public boolean test(Object object) {
              return false; //TODO: Implement first predicate
          }
      } ;
  
      predicate.and(...); //Implement another predicate.
  </code></pre>
  
  <p>Regards</p>
  
  <p>~M</p>