From 548f2a10cf40b4b54038255a8a791fc2b05d17af Mon Sep 17 00:00:00 2001 From: Marco Zanon Date: Sun, 3 Jun 2012 07:59:54 +0000 Subject: [PATCH] Introduced static MText.isEmpty() method. --- src/java/com/marcozanon/macaco/text/MText.java | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- 2.30.2