
org.reextractor.util.StringUtils Maven / Gradle / Ivy
package org.reextractor.util;
public class StringUtils {
public static boolean equals(String str1, String str2) {
if (str1 == null || str2 == null) return false;
return str1.strip().equals(str2.strip());
}
public static boolean isNotEmpty(CharSequence cs) {
return !isEmpty(cs);
}
public static boolean isEmpty(CharSequence cs) {
return cs == null || cs.length() == 0;
}
public static boolean isNumeric(String str) {
for (char c : str.toCharArray()) {
if (!Character.isDigit(c)) return false;
}
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy