It is mentioned in the LinkedHashMap Javadocs:
In particular, operations on collection-views do not affect the order of iteration of the backing map.
What does “operations on collection-views” mean?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The collection-views of
Maps are the objects returned by:Map#keySet()Map#values()Map#entrySet()Operations on those simply means any method calls on the collection-view instance.