Introduced static MText.isEmpty() method.
authorMarco Zanon <info@marcozanon.com>
Sun, 3 Jun 2012 07:59:54 +0000 (07:59 +0000)
committerMarco Zanon <info@marcozanon.com>
Sun, 3 Jun 2012 07:59:54 +0000 (07:59 +0000)
src/java/com/marcozanon/macaco/text/MText.java

index ae46b319acf420774acaa0a7a36dbdabc57f176e..c2629609e2abea177fc57167f8728bdcbec9126d 100644 (file)
@@ -28,6 +28,13 @@ public class MText extends MObject {
 
     /* Checks */
 
+    public static boolean isEmpty(String x) {
+        if ((null != x) && ("".equals(x))) {
+            return true;
+        }
+        return false;
+    }
+
     public static boolean isBlank(String x) {
         if ((null == x) || ("".equals(x))) {
             return true;