From: Marco Zanon Date: Sun, 3 Jun 2012 07:59:54 +0000 (+0000) Subject: Introduced static MText.isEmpty() method. X-Git-Tag: SVN-to-Git~137 X-Git-Url: https://gitweb.marcozanon.com/?a=commitdiff_plain;h=548f2a10cf40b4b54038255a8a791fc2b05d17af;p=Macaco Introduced static MText.isEmpty() method. --- diff --git a/src/java/com/marcozanon/macaco/text/MText.java b/src/java/com/marcozanon/macaco/text/MText.java index ae46b31..c262960 100644 --- a/src/java/com/marcozanon/macaco/text/MText.java +++ b/src/java/com/marcozanon/macaco/text/MText.java @@ -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;