Does the constructor LinkedHashSet(Collection<? extends E> c)
guarantee preserved order of its argument, assuming the argument is an ordered collection? How can we be sure of that?
The Javadoc documentation says nothing about order:
Constructs a new linked hash set with the same elements as the specified collection. The linked hash set is created with an initial capacity sufficient to hold the elements in the specified collection and the default load factor (0.75).
I don't see any reason for it to not preserve order but I want to know if it is guaranteed (for current and future implementations).