yangxu998 / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

Sets.newLinkedHashSetWithExpectedSize #684

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Why is there no Sets.newLinkedHashSetWithExpectedSize()?  Should it not also 
have methods that match the signatures for HashSet?

Original issue reported on code.google.com by dnd1...@gmail.com on 10 Aug 2011 at 8:44

GoogleCodeExporter commented 9 years ago

Original comment by kevin...@gmail.com on 11 Aug 2011 at 1:50

GoogleCodeExporter commented 9 years ago
I'm a bit tardy in realizing how much LHS really should be emphasized over HS.  
I think we should do this, unless we boldly change newHashSetWithExpectedSize 
to return LHS itself!

Original comment by kevinb@google.com on 16 Aug 2011 at 3:39

GoogleCodeExporter commented 9 years ago
-1 to the last part: given that LHS has 25% more memory footprint compared to 
HS, and that HS is already very bloated by itself, it's just too expensive to 
unnecessarily redirect would-be users of HS, to LHS.

Original comment by jim.andreou on 18 Aug 2011 at 6:44

GoogleCodeExporter commented 9 years ago
er +1 to #3, i don't want to replace, just add.

Original comment by dnd1...@gmail.com on 23 Aug 2011 at 4:42

GoogleCodeExporter commented 9 years ago
The replacing idea was half-serious, and I think it's fine to just add this 
(very long-named!) method.

Original comment by kevin...@gmail.com on 1 Sep 2011 at 5:34

GoogleCodeExporter commented 9 years ago

Original comment by kevinb@google.com on 5 Oct 2011 at 5:02

GoogleCodeExporter commented 9 years ago

Original comment by yrfselrahc@gmail.com on 5 Dec 2011 at 6:35

GoogleCodeExporter commented 9 years ago

Original comment by kak@google.com on 8 Dec 2011 at 7:40

GoogleCodeExporter commented 9 years ago

Original comment by kurt.kluever on 8 Dec 2011 at 7:58

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:15

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:09