@Override
public Multimap<Character, Map.Entry<String, ValueAttribute>> apply(Iterable<ValueAttribute> attributes) {
ImmutableMultimap.Builder<Character, Map.Entry<String, ValueAttribute>> builder = ImmutableMultimap.builder();
for (ValueAttribute attribute : attributes) {
String serializedName = attribute.getMarshaledName();
builder.put(serializedName.charAt(0), Maps.immutableEntry(serializedName, attribute));
for (String alternateName : attribute.getAlternateSerializedNames()) {
if (!alternateName.isEmpty()) {
builder.put(alternateName.charAt(0), Maps.immutableEntry(alternateName, attribute));
}
}
}
return builder.build();
}
Gsons.java 文件源码
java
阅读 44
收藏 0
点赞 0
评论 0
项目:GitHub
作者:
评论列表
文章目录