All Questions
3 questions
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 ...
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?...
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 ...