title: Is there a Java standard "both null or equal" static method?
body: <p>To save some typing and clarify my code, is there a standard version of the following method?</p>
  
  <pre><code>public static boolean bothNullOrEqual(Object x, Object y) {
    return ( x == null ? y == null : x.equals(y) );
  }
  </code></pre>