title: All Null, Any Null is possible guava Predicate
body: <p>I'm currently facing a code readability issue. The problem is the following:</p>
  
  <p>Have three objects</p>
  
  <pre><code>// initialization skipped, all of three could be null as result of their initalization
  Object obj1;
  Object obj2;
  Object obj3;
  </code></pre>
  
  <p>I want to create two booleans from them as follows:</p>
  
  <pre><code>// all are null
  boolean bool1 = (obj1 == null &amp;&amp; obj2 == null &amp;&amp; obj3 == null); 
  
  // any of them is null
  
  boolean bool2 = (obj1 == null || obj2 == null || obj3 == null);
  </code></pre>
  
  <p>I know guava provides built-in predicates like <code>isNull</code> and <code>notNull</code>.</p>
  
  <p>Is there a way to implement a custom predicate that fulfills those two booleans? (assuming that <code>.apply(..)</code> function would take 3 parameters then)</p>