title: How to get the first key value from map using JAVA 8?
body: <p>As for now I am doing :</p>
  
  <pre><code>Map&lt;Item, Boolean&gt; processedItem = processedItemMap.get(i);
  
          Map.Entry&lt;Item, Boolean&gt; entrySet = getNextPosition(processedItem);
  
          Item key = entrySet.getKey();
          Boolean value = entrySet.getValue();
  
  
   public static Map.Entry&lt;Item, Boolean&gt; getNextPosition(Map&lt;Item, Boolean&gt; processedItem) {
          return processedItem.entrySet().iterator().next();
      }
  </code></pre>
  
  <p>Is there any cleaner way to do this with java8 ?</p>