Java Utililty Methods List Transform

List of utility methods to do List Transform

Description

The list of methods to do List Transform are organized into topic(s).

Method

StringtransformToJsonArray(List objectsWithJsonToString)
Object.toString() has to return json
StringBuilder json = new StringBuilder("[");
for (Object object : objectsWithJsonToString) {
    json.append(object.toString()).append(",");
if (objectsWithJsonToString.size() > 0 && json.charAt(json.length() - 1) == ',') {
    json = new StringBuilder(json.substring(0, json.length() - 1));
json.append("]");
...