Что-то вроде:
Код: Выделить всё
Set setOfStrings = getSetFromSomeOtherFuntion();
Map map = new Hashmap(setOfStrings);
Подробнее здесь: https://stackoverflow.com/questions/653 ... s-from-set
Код: Выделить всё
Set setOfStrings = getSetFromSomeOtherFuntion();
Map map = new Hashmap(setOfStrings);