You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is mainly a stylistic question, but instead of varargs values, wouldn't most just make a set? I can't imagine a scenario where you would want duplicate values for a tag, and a set could force uniqueness.
publicQueryTagMetricaddTag(Stringname, String... values)
{
checkNotNullOrEmpty(name, "name cannot be null or empty");
checkArgument(values.length > 0, "value must be greater than 0");
for (Stringvalue : values)
{
checkNotNullOrEmpty(value, "value cannot be null or empty");
}
tags.putAll(name, Arrays.asList(values));
return (this);
}
The text was updated successfully, but these errors were encountered:
This is mainly a stylistic question, but instead of varargs values, wouldn't most just make a set? I can't imagine a scenario where you would want duplicate values for a tag, and a set could force uniqueness.
The text was updated successfully, but these errors were encountered: