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;
  }
public void setEnumsList(Map<String, List<Object>> enums)
  {
    Preconditions.checkNotNull(enums);
    areEnumsUpdated = true;
   
    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());
   
    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;
  }
public void setenumslist(map<string, list<object>> enums) { preconditions.checknotnull(enums); areenumsupdated = true; 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()); 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; }