不行,putStringSet能存储的是set<String>类型,可以有HashSet<String>等等10多个子类,但是没有HashMap
HashMap的父类是AbstractMap。。和set<string>完全是两回事了。