Back to project page SORM.
The source code is released under:
MIT License
If you think the Android project SORM listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.annotation.utils; /*from ww w .j a v a2 s . c om*/ import android.util.Log; public class _ { private static final String TAG = "debug"; /** * Returns true if the string is null or 0-length. * * @return */ public static boolean isEmpty(CharSequence str) { if (str == null || str.length() == 0) return true; return false; } public static boolean isNumber(String s) { try { Double.parseDouble(s); return true; } catch (Exception e) { return false; } } public static void d(String s) { Log.d(TAG, s); } }