Added basic MText class.
authorMarco Zanon <info@marcozanon.com>
Sun, 25 Mar 2012 13:11:49 +0000 (13:11 +0000)
committerMarco Zanon <info@marcozanon.com>
Sun, 25 Mar 2012 13:11:49 +0000 (13:11 +0000)
src/java/com/marcozanon/macaco/text/MText.java [new file with mode: 0644]

diff --git a/src/java/com/marcozanon/macaco/text/MText.java b/src/java/com/marcozanon/macaco/text/MText.java
new file mode 100644 (file)
index 0000000..6500fe3
--- /dev/null
@@ -0,0 +1,22 @@
+/**
+ * Macaco
+ * Copyright (c) 2009-2012 Marco Zanon <info@marcozanon.com>.
+ * Released under MIT license (see LICENSE for details).
+ */
+
+package com.marcozanon.macaco.text;
+
+import com.marcozanon.macaco.MObject;
+
+public class MText extends MObject {
+
+    /* */
+
+    public static boolean isBlank(String x) {
+        if ((null == x) || ("".equals(x))) {
+            return true;
+        }
+        return false;
+    }
+
+}