Back to project page Ocypode.
The source code is released under:
MIT License
If you think the Android project Ocypode 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.ocypode.utility.validation; // w w w . j a v a2s .co m public class StringValidation { public final static boolean isEmpty(String value) { return isNull(value) || "".equals(value.trim()); } public final static boolean isNotEmpty(String value) { return !isEmpty(value); } public final static boolean isNull(String value) { return value == null; } public final static boolean isNotNull(String value) { return value != null; } public final static boolean isValidEmail(CharSequence target) { if (target == null || isEmpty(target.toString())) { return false; } else { return android.util.Patterns.EMAIL_ADDRESS.matcher(target).matches(); } } }