NIHVIVO-142 Add/edit/delete blurb on front end

This commit is contained in:
rjy7 2010-03-23 17:28:11 +00:00
parent bcbe290c51
commit 54c5019347
4 changed files with 98 additions and 47 deletions

View file

@ -38,12 +38,22 @@ public class StringUtils {
return join(list, false, ",");
}
public static String quotedList(List<?> list, String glue) {
public static String quotedList(List<?> list, String glue) {
return join(list, true, glue);
}
// Because we can't use Java 1.6 String.isEmpty()
public static boolean isEmpty(String s) {
return s == null || s.length() <= 0;
}
public static boolean equalsOneOf(String s, String... strings) {
for (String item : strings) {
if (item.equals(s)) {
return true;
}
}
return false;
}
}