1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-15 05:55:06 -05:00
k-9/src/com/fsck/k9/helper/StringUtils.java

23 lines
494 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.length() == 0;
}
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
}