List of utility methods to do List Merge
String | doMerge(List do Merge StringBuilder builder = new StringBuilder(); for (String s : list) { builder.append(s); builder.append(sep); return builder.toString(); |
String | getMergedLines(List extends CharSequence> strings) get Merged Lines final StringBuilder sb = new StringBuilder(); for (int i = 0; i < strings.size(); i++) { sb.append(strings.get(i)); if (i < strings.size() - 1) { sb.append("\\n"); return sb.toString(); ... |
List | getMergedSpeakerList() get Merged Speaker List return null;
|
List | getMergeindexes(List get Mergeindexes List<Integer> mindexes = new ArrayList<Integer>(); for (int i = 0; i < spans.size() - 1; i++) { String s = spans.get(i); if (s.length() + indexes.get(i) == indexes.get(i + 1)) { mindexes.add(indexes.get(i + 1)); return mindexes; ... |
void | mapMergeAdd(Map map Merge Add for (Map.Entry<T, List<U>> e : mapToAdd.entrySet()) { if (!map.containsKey(e.getKey())) { map.put(e.getKey(), new ArrayList<U>()); map.get(e.getKey()).addAll(e.getValue()); |
List | merge(final List
merge List<T> mergedElements = listOfLists.get(0); for (int i = 1; i < listOfLists.size(); i++) { Collection<? extends T> elements = listOfLists.get(i); mergedElements.addAll(elements); return mergedElements; |
String | merge(final List Merge all strings into a single string with the delimiter in between the items Can be seen as the reverse of a string splitter if (list == null) return ""; StringBuilder sb = new StringBuilder(); for (String item : list) { if (item.length() == 0) continue; if (sb.length() > 0) sb.append(seperator); ... |
List | merge(final List merge final List<T> retVal = new ArrayList<T>(); retVal.addAll(a); retVal.addAll(b); return retVal; |
List | merge(final List merge if (aList == null && bList == null) { return Collections.emptyList(); if (aList != null && bList == null) { return Collections.unmodifiableList(aList); if (aList == null && bList != null) { return Collections.unmodifiableList(bList); ... |
String[] | merge(final String[] input, final String[] list) Merge to string arrays final List<String> v = new ArrayList<String>(Arrays.asList(list)); for (final String anInput : input) { if ((null != anInput) && !v.contains(anInput)) { v.add(anInput); return v.toArray(new String[v.size()]); |