//Todo check the type of the objects, for now just set them on the enum.
public void setEnumsList(Map<String, List<Object>> enums)
  {
    Preconditions.checkNotNull(enums);
    areEnumsUpdated = true;
    //Check that all the given keys are valid
    Preconditions.checkArgument(
        configurationSchema.getKeyDescriptor().getFields().getFields().containsAll(enums.keySet()),
        "The given map doesn't contain valid keys. Valid keys are %s and the provided keys are %s",
        configurationSchema.getKeyDescriptor().getFields().getFields(),
        enums.keySet());
    //Todo check the type of the objects, for now just set them on the enum.
    for (Map.Entry<String, List<Object>> entry : enums.entrySet()) {
      Preconditions.checkNotNull(entry.getKey());
      Preconditions.checkNotNull(entry.getValue());
    }
    Map<String, List<Object>> tempEnums = Maps.newHashMap();
    for (Map.Entry<String, List<Object>> entry : enums.entrySet()) {
      String key = entry.getKey();
      List<?> enumValues = entry.getValue();
      List<Object> tempEnumValues = Lists.newArrayList();
      for (Object enumValue : enumValues) {
        tempEnumValues.add(enumValue);
      }
      tempEnums.put(key, tempEnumValues);
    }
    currentEnumVals = tempEnums;
  }
configurationSchema.getKeyDescriptor().getFields().getFields(),
enums.keySet());
//Todo check the type of the objects, for now just set them on the enum.
for (Map.Entry<String, List<Object>> entry : enums.entrySet()) {
Preconditions.checkNotNull(entry.getKey());
public void setEnumsList(Map<String, List<Object>> enums)
{
Preconditions.checkNotNull(enums);
areEnumsUpdated = true;
//Check that all the given keys are valid
Preconditions.checkArgument(
configurationSchema.getKeyDescriptor().getFields().getFields().containsAll(enums.keySet()),
"The given map doesn't contain valid keys. Valid keys are %s and the provided keys are %s",
configurationSchema.getKeyDescriptor().getFields().getFields(),
enums.keySet());
//Todo check the type of the objects, for now just set them on the enum.
for (Map.Entry<String, List<Object>> entry : enums.entrySet()) {
Preconditions.checkNotNull(entry.getKey());
Preconditions.checkNotNull(entry.getValue());
}
Map<String, List<Object>> tempEnums = Maps.newHashMap();
for (Map.Entry<String, List<Object>> entry : enums.entrySet()) {
String key = entry.getKey();
List<?> enumValues = entry.getValue();
List<Object> tempEnumValues = Lists.newArrayList();
for (Object enumValue : enumValues) {
public void setEnumsList(Map<String, List<Object>> enums)
{
Preconditions.checkNotNull(enums);
areEnumsUpdated = true;
//Check that all the given keys are valid
Preconditions.checkArgument(
configurationSchema.getKeyDescriptor().getFields().getFields().containsAll(enums.keySet()),
"The given map doesn't contain valid keys. Valid keys are %s and the provided keys are %s",
configurationSchema.getKeyDescriptor().getFields().getFields(),
enums.keySet());
//Todo check the type of the objects, for now just set them on the enum.
for (Map.Entry<String, List<Object>> entry : enums.entrySet()) {
Preconditions.checkNotNull(entry.getKey());
Preconditions.checkNotNull(entry.getValue());
}
Map<String, List<Object>> tempEnums = Maps.newHashMap();
for (Map.Entry<String, List<Object>> entry : enums.entrySet()) {
String key = entry.getKey();
List<?> enumValues = entry.getValue();
List<Object> tempEnumValues = Lists.newArrayList();
for (Object enumValue : enumValues) {
tempEnumValues.add(enumValue);
}
tempEnums.put(key, tempEnumValues);
}
currentEnumVals = tempEnums;
}