k-9/src/com/fsck/k9/helper/StringUtils.java

23 lines
490 B
Java
Raw Normal View History

2011-10-27 14:50:23 -04:00
package com.fsck.k9.helper;
2011-10-29 02:12:49 -04:00
public final class StringUtils {
public static boolean isNullOrEmpty(String string){
return string == null || string.isEmpty();
2011-10-29 02:12:49 -04:00
}
public static boolean containsAny(String haystack, String[] needles) {
if (haystack == null) {
return false;
}
for (String needle : needles) {
if (haystack.contains(needle)) {
return true;
}
}
return false;
}
2011-10-27 14:50:23 -04:00
}