List of usage examples for java.lang String trim
public String trim()
From source file:Main.java
public static boolean stringisEmpty(String str) { return TextUtils.isEmpty(str.trim()); }
From source file:Main.java
public static boolean isPwd(String pwd) { return (null != pwd && pwd.trim().length() >= 5); }
From source file:Main.java
public static boolean isEmpty(String string) { return string == null || string.trim().equals(""); }
From source file:Main.java
public static Boolean isUrl(String str) { if (str == null || str.trim().length() == 0) return false; return URL.matcher(str).matches(); }
From source file:Main.java
public static boolean stringTrimIsEmpty(String strMsg) { if (strMsg == null || strMsg.trim().length() == 0) return true; return false; }
From source file:Main.java
public static boolean isEmpty(String s) { return null == s || "".equals(s.trim()); }
From source file:Main.java
/** * Checks for Null String object// w w w.j a v a 2s . com * * @param txt * @return true for not null and false for null String object */ public static boolean isNotNull(String txt) { return txt != null && txt.trim().length() > 0 ? true : false; }
From source file:Main.java
public static boolean isEmpty(String param) { if (param == null || param.trim().length() <= 0 || param.trim().equalsIgnoreCase("null")) { return true; }/*from www.j a va 2 s.co m*/ return false; }
From source file:Main.java
/** * @param str/*from www.ja v a2 s .c o m*/ * @return if string is null or its size is 0 or it is made by space, return * true, else return false. */ public static boolean isEmpty(String str) { return (str == null || str.trim().length() == 0 || str.equals("null") || str.trim().equals("")); }
From source file:Main.java
public static boolean isEmptyTrimmed(String str) { return (isNull(str) || str.trim().length() == 0); }