List of usage examples for android.text TextUtils isEmpty
public static boolean isEmpty(@Nullable CharSequence str)
From source file:Main.java
private static void log(String message) { if (TextUtils.isEmpty(message)) { return; } }
From source file:Main.java
public static int str2Int(String str) { if (TextUtils.isEmpty(str) || !TextUtils.isDigitsOnly(str)) { return 0; }// ww w . j a v a 2s . co m return Integer.parseInt(str); }
From source file:Main.java
public static boolean isEmpty(String line) { return TextUtils.isEmpty(line) || line.equals("\n") || line.equals("\t") || TextUtils.isEmpty(line.trim()); }
From source file:Main.java
public static boolean isEmpty(String str) { return TextUtils.isEmpty(str); }
From source file:Main.java
public static String checkString(String str) { return TextUtils.isEmpty(str) ? str + "" : str; }
From source file:Main.java
public static float str2Float(String str) { if (TextUtils.isEmpty(str)) return 0F; return Float.parseFloat(str); }
From source file:Main.java
public static String addQuoteMark(String s) { if (!TextUtils.isEmpty(s) && s.charAt(0) != '"' && !s.contains("*")) s = (new StringBuilder()).append("\"").append(s).append("\"").toString(); return s;//from w w w. j a v a 2s .c o m }
From source file:Main.java
public static String doNullStr(String str) { return TextUtils.isEmpty(str) ? "" : str; }
From source file:Main.java
public static String capitalize(String target) { return TextUtils.isEmpty(target) ? "" : target.toUpperCase(); }
From source file:Main.java
public static boolean checkNULL(String url) { return TextUtils.isEmpty(url) || url.equalsIgnoreCase("null"); }