title: Use method reference to check boolean value match instead of lambda
body: <p>Use of Method reference for comparing <code>boolean</code>.</p>
  
  <p>Instead of <code>(t-&gt;t)</code>, I want to use method reference. Method reference is applicable for non-boolean value match as stated below.</p>
  
  <p>Full Code: </p>
  
  <pre><code>public class AccountListTest {
      public static void main(String[] args){
          List&lt;Account&gt; list = new ArrayList&lt;&gt;();
          Account a1 = new Account(true, "Test1");
          list.add(a1);
          Account a2 = new Account(false, "Test2");
          list.add(a2);
  
          if(list.stream().map(Account::getName).anyMatch("test1"::equalsIgnoreCase)){
              System.out.println("Contain Account with name Test1");
          }
  
          if(list.stream().map(Account::isActive).anyMatch(t-&gt;t)){
              System.out.println("Have Active Account");
          }
      }
  }
  
  class Account{
      private boolean active;
      private String name;
      public Account(boolean active, String name) {
          super();
          this.active = active;
          this.name = name;
      }   
  }
  </code></pre>
  
  <p>Any help is appreciated! thanks!</p>