List of utility methods to do Collection Concatenate
List | concat(boolean removeDuplicates, Collection extends E> firstCollection, Collection>... collections) concat final List<E> result; if (removeDuplicates) { result = new ArrayList<E>(); addElements(removeDuplicates, result, firstCollection); } else { result = new ArrayList<E>(firstCollection); for (Collection<?> collection : collections) { ... |
String | concat(Collection concat StringBuilder builder = new StringBuilder(); for (Iterator<Class<?>> it = classes.iterator(); it.hasNext();) { builder.append(it.next().getCanonicalName()); if (it.hasNext()) { builder.append(separator); return builder.toString(); ... |
String | concat(Collection concat if (collection == null) { return null; StringBuilder buf = new StringBuilder(); Iterator<E> itr = collection.iterator(); while (itr.hasNext()) { buf.append(itr.next().toString()); if (itr.hasNext()) { ... |
String | concat(Collection concat StringBuilder sb = new StringBuilder(); for (String s : c) { if (sb.length() > 0) { sb.append(","); sb.append(s); return sb.toString(); ... |
String | concat(Collection Concatenate a collection of strings return (items != null) ? join(null, items.toArray(new String[items.size()])) : null; |
String | concat(Collection concat return concatArray(parts.toArray(new String[parts.size()]), start, defaultText); |
String | concat(Collection Build a string concatenating the pieces, adding the delim between each. return concat(pieces, delim, 0, pieces.size());
|
Collection | concat(Collection concat Collection<T> result = new ArrayList<>(a.size() + b.size()); result.addAll(a); result.addAll(b); return Collections.unmodifiableCollection(result); |
String | concat(Collection concat StringBuilder sb = new StringBuilder(); sb.append(start); Iterator<T> it; for (it = a.iterator(); offset > 0 && it.hasNext(); --offset, it.next()) ; if (offset == 0 && it.hasNext()) { sb.append(it.next()); while (it.hasNext()) { ... |
List | concat(Collection concat List<T> objs = new ArrayList<>(); objs.addAll(first); objs.addAll(second); return objs; |