- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
public static String getJoinedHeaderTypes(List<String> types, String delimiter) {
if (!types.isEmpty() && types.size() > 1) {
return String.join(delimiter, types);
} else if (types.size() == 1) {
return types.stream().findFirst().get();
}
return "";
}