com.tw.go.plugin.util.ListUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of git-cmd Show documentation
Show all versions of git-cmd Show documentation
Common module that all Go CD plugins can use to poll Git repository.
package com.tw.go.plugin.util;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
public class ListUtil {
public static boolean isEmpty(List list) {
return list == null || list.isEmpty();
}
public static String join(Collection c) {
return join(c, ", ");
}
public static String join(Collection c, String join) {
StringBuffer sb = new StringBuffer();
for (Iterator