Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
327 views

Kotlin HashSet wrong behaviour (bug)

I've got a strange behaviour of the HashSet class. I don't know why, but method contains returns wrong result. Here an image from debugger: rootElemetns is a HashSet that contains some FsEntries that ...
don11995's user avatar
  • 815
2 votes
2 answers
2k views

Order missing while converting to ArrayList from HashSet

I am working to convert ArrayList to HashSetand then HashSet to ArrayList. It's working perfectly. I have passed an ArrayList in an order. But i am getting result in different order. How to solve this?...
selva_pollachi's user avatar
1 vote
2 answers
137 views

Does SharedPreferences copy the passed Set<T> into another type?

I am trying to convert as Set to an array. I'd like it to store the insertion order of elements placed in it. The set i am constructing is passed into a SharedPreferences object in the putStringSet ...
lysergic-acid's user avatar