Time-complexity of all 3 collection view iterators for HashMap (myHashMap.entrySet().iterator().next()
and myHashMap.keySet().iterator().next()
and myHashMap.values().iterator().next()
) is well-documented in javadoc, it is O(n+c) for all those 3 iterators (n is number of mappings, c is capacity that is physical number of buckets in hashtable).
But what about respective 3 iterators of 3 respective TreeMap collection views? Nothing is said in official javadoc. What are their complexities? I did look in SE8 source code but I cannot judge from there.