If you have Collection, and not List, and you want it to be like List, there is no faster way than doing something like new ArrayList(yourCollection). (I donβt think the constructor does any unnecessary work that you might miss, so to speak.)
. HashMap , . LinkedHashMap, . (, , .)