Iteration order of HashSet

Posted by eljenso on Stack Overflow See other posts from Stack Overflow or by eljenso
Published on 2010-04-24T13:26:43Z Indexed on 2010/04/24 13:33 UTC
Read the original article Hit count: 260

Filed under:
|
|

If every object added to a java.util.HashSet implements Object.equals() and Object.hashCode() in a deterministic fashion, is the iteration order over the HashSet guaranteed to be identical for every identical set of elements added, irrespective of the order in which they were added?

© Stack Overflow or respective owner

Related posts about java

Related posts about collections