/**
* set 转换成 map
* @param set
* @return
*/
private Map<String,String> setToMap (Set<String> set) {
Map<String,String> map = new HashMap<String,String>();
if (set == null) {
return null;
}
Iterator<String> iterator = set.iterator();
while (iterator.hasNext()) {
map.put(UUID.randomUUID().toString(), iterator.next());
}
return map;
}
* set 转换成 map
* @param set
* @return
*/
private Map<String,String> setToMap (Set<String> set) {
Map<String,String> map = new HashMap<String,String>();
if (set == null) {
return null;
}
Iterator<String> iterator = set.iterator();
while (iterator.hasNext()) {
map.put(UUID.randomUUID().toString(), iterator.next());
}
return map;
}