title: How I can get key, value pair from LinkedHashMap iterator?
body: <p>I test SnakeYAML library to read .yaml documents. I have read Example 2.27. Invoice from <a href="http://yaml.org/spec/1.1/" rel="nofollow">http://yaml.org/spec/1.1/</a> and I get object:</p>
  
  <pre><code>System.out.println(content);
  Yaml yaml = new Yaml();
  Object o = yaml.load(content);
  </code></pre>
  
  <p>where content is String loaded from file using Files.readAllBytes, encoding.decode (encoding is StandardCharsets.UTF_8)</p>
  
  <p>Reflection gaves me that o is type of java.util.LinkedHashMap and I can iterate over them:</p>
  
  <pre><code>Set entrySet = o.entrySet();
  Iterator it = entrySet.iterator();
  System.out.println("LinkedHashMap entries : ");
  while (it.hasNext())
  {
      Object entry = it.next();
      System.out.println(entry);
  }
  </code></pre>
  
  <p>Reflection return that type of entry is LinkedHashMap$Entry. But is <strong>problem</strong>: internal class LinkedHashMap$Entry is private and I can't declare objects this type.
  How I can get  pair from entry, iterator or entrSet?</p>