Map
2018-06-01 本文已影响0人
bigfish1129
private Map<FieldEnums, Long> fields = new HashMap<>();
for (Map.Entry<FieldEnums, Long> entry : Param.getFields().entrySet()) {
Long count = entry.getValue();
switch (entry.getKey()) {
case A:
aram.setBQuantity(count);
break;
case B:
aram.setAQuantity(count);
break;
}
}