title: What is the time complexity of entrySet in treeMap
body: <p>I am not sure if the time complexity of method entrySet() is O(n) or O(1).</p>
  
  <pre><code>Map&lt;Integer, String&gt; map = new TreeMap&lt;&gt;();
  
  map.entrySet();
  </code></pre>