Java Utililty Methods List Join

List of utility methods to do List Join

Description

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

Method

Stringjoin(List array, char c)
join
final StringBuilder sb = new StringBuilder();
for (int value : array) {
    if (sb.length() > 0) {
        sb.append(c);
    sb.append(Integer.toString(value));
return sb.toString();
...
Stringjoin(List list, String separator)
join
if (list == null || list.isEmpty())
    return null;
StringBuilder sBuilder = new StringBuilder();
for (Integer item : list) {
    if (item != null)
        sBuilder.append("," + item.toString());
sBuilder.deleteCharAt(0);
...
intjoin(List recycled)
join
int ret = 0;
for (int i = 0; i < recycled.size(); i++) {
    ret += Math.pow(10, i) * recycled.get(recycled.size() - i - 1);
return ret;
Stringjoin(List list)
join
StringBuilder sb = new StringBuilder();
for (Object x : list) {
    sb.append(x.toString());
return sb.toString();
Stringjoin(List list)
String join helper function
return join("", list);
Stringjoin(List list, String delim)
Creates a single string from a List of strings seperated by a delimiter.
if (list == null || list.size() < 1)
    return null;
StringBuffer buf = new StringBuffer();
Iterator<Object> i = list.iterator();
while (i.hasNext()) {
    buf.append((String) i.next());
    if (i.hasNext())
        buf.append(delim);
...
Stringjoin(List args, String connector)
join
String joined = null;
for (String part : args) {
    if (joined == null) {
        joined = part;
    } else {
        joined += connector + part;
return joined;
Stringjoin(List args, String seperator)
join
return join(args.toArray(new String[0]), seperator);
Stringjoin(List array, String delim)
Convenience routine to perform a string join for groups in the database.
StringBuffer sb = join(array, delim, new StringBuffer());
return sb.toString();
Stringjoin(List c, String seperator)
join
return join(new StringBuffer(), c, seperator).toString();