title: Java 8 Stream filter using list as condition
body: <p>Hello I'm beginner when it comes to Java 8 so please be patient for me :)</p>
  
  <p>I have a method that returns custom list of objects. What I need to do: I have got a list of <code>disabledPaymentTypesStrings</code> - and I don't know how many elements it has got. How can I change my code in order to not write every condition like <code>!paymentType.getName().equalsIgnoreCase(disabledPaymentTypesStrings.get(1))</code>? I would like to have somehow my whole list "disabledPaymentTypesStrings" placed here as a condition but I have no idea how to do that. Please give me some hints or advices :)</p>
  
  <pre><code>private List&lt;PaymentType&gt; listOfPaymentTypesForChangePayment(OrderPaymentTypeParameters paymentTypeParameters) {
  
          List&lt;String&gt; disabledPaymentTypesStrings = newArrayList(Splitter.on(COMMA).split(systemUtils.getChangePaymentTypeDisabled()));
  
          return paymentTypeSelector.availablePaymentTypesForChangePayment(paymentTypeParameters).stream()
              .filter(paymentType -&gt;
                  !paymentType.getName().equalsIgnoreCase(disabledPaymentTypesStrings.get(0)) &amp;&amp;
                  !paymentType.getName().equalsIgnoreCase(disabledPaymentTypesStrings.get(1)) &amp;&amp;
                  !paymentType.getName().equalsIgnoreCase(disabledPaymentTypesStrings.get(2)))
              .collect(toList());
      }
  </code></pre>