title: Java consumers ability to accept and return boolean or string
body: <p>This is a regular Consumer with usage:</p>
  
  <pre><code>public static void main(String[] args){
      Consumer&lt;String&gt; consumer = (str) -&gt; {
          //stuff
      };
  
      consumer.accept(args[0]);
  }
  </code></pre>
  
  <p>Here is what I am attempting to do (make it so consumer returns as boolean)</p>
  
  <pre><code>public static void main(String[] args){
      Consumer&lt;String&gt; consumer = (str) -&gt; {
          return str.equals("yes"); //type mis-match error because consumer is void not boolean
      };
  
      boolean a = consumer.accept(args[0]); //type mis-match error because consumer is void not boolean
  }
  </code></pre>
  
  <p>How can I manipulate consumer to return as a boolean?</p>
  
  <p>Without obviously creating a whole new interface.... (below)</p>
  
  <pre><code>public interface ConsumerB {
      boolean accept(String s);
  }
  </code></pre>