/** * Helper function for turning empty or whitespace strings into a null. * * @return null if s is zero length or if s contains only whitespace * characters. otherwise, returns s. */ public static String toNullIfEmptyOrWhitespace(String s) { return (StringUtil.isEmptyOrWhitespace(s)) ? null : s; }
/** * Helper function for turning empty or whitespace strings into a null. * * @return null if s is zero length or if s contains only whitespace * characters. otherwise, returns s. */ public static String toNullIfEmptyOrWhitespace(String s) { return (StringUtil.isEmptyOrWhitespace(s)) ? null : s; }
/** * Helper function for turning empty or whitespace strings into a null. * * @return null if s is zero length or if s contains only whitespace * characters. otherwise, returns s. */ public static String toNullIfEmptyOrWhitespace(String s) { return (StringUtil.isEmptyOrWhitespace(s)) ? null : s; }
if (!StringUtil.isEmptyOrWhitespace(hashFunctionName)) { attributes.add(new XmlWriter.Attribute(ATTRIBUTE_HASH_FUNCTION_NAME, hashFunctionName));
if (!StringUtil.isEmptyOrWhitespace(hashFunctionName)) { attributes.add(new XmlWriter.Attribute(ATTRIBUTE_HASH_FUNCTION_NAME, hashFunctionName));