use of com.googlecode.jmxtrans.model.naming.typename.UseAllTypeNameValuesStringBuilder in project jmxtrans by jmxtrans.
the class Query method makeTypeNameValuesStringBuilder.
private TypeNameValuesStringBuilder makeTypeNameValuesStringBuilder() {
String separator = isAllowDottedKeys() ? "." : TypeNameValuesStringBuilder.DEFAULT_SEPARATOR;
Set<String> typeNames = getTypeNames();
if (isUseAllTypeNames()) {
return new UseAllTypeNameValuesStringBuilder(separator);
} else if (typeNames != null && !typeNames.isEmpty()) {
return new PrependingTypeNameValuesStringBuilder(separator, new ArrayList<>(typeNames));
} else {
return new TypeNameValuesStringBuilder(separator);
}
}
Aggregations