No it does not preserve. i just simply eliminate the duplicates elements from the list so used HashSet().