title: Find the differences between two maps
body: <p>I have two maps current and previous and I want to see if there is any difference between the 2 maps. If either a new key is present in the currentMap or if the values are different for the same key I can stop.</p>
  
  <pre><code>Map&lt;String, String&gt; previousValue;
  Map&lt;String, String&gt; currValue;
  
  boolean isChangePresent = currValue.entrySet().stream().anyMatch(
                      x -&gt; !previousValue.containsKey(x.getKey()) ||
                          (previousValue.get(x.getKey()) != null &amp;&amp; !previousValue.get(x.getKey()).equals(
                              x.getValue())));
  </code></pre>
  
  <p>Is there a better way to do this or a built-in utility function which does something of this sort?</p>