public void setKeys(Collection<String> keys) {
StringBuilder sb = new StringBuilder();
for (String k : keys) {
sb.append(k).append(MessageConst.KEY_SEPARATOR);
}
this.setKeys(sb.substring(0, sb.length() - MessageConst.KEY_SEPARATOR.length()));
}
转载于:https://my.oschina.net/duckegg/blog/1536832