projects
/
Macaco
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ee0554
)
Introduced static MText.isEmpty() method.
author
Marco Zanon
<info@marcozanon.com>
Sun, 3 Jun 2012 07:59:54 +0000
(07:59 +0000)
committer
Marco Zanon
<info@marcozanon.com>
Sun, 3 Jun 2012 07:59:54 +0000
(07:59 +0000)
src/java/com/marcozanon/macaco/text/MText.java
patch
|
blob
|
history
diff --git
a/src/java/com/marcozanon/macaco/text/MText.java
b/src/java/com/marcozanon/macaco/text/MText.java
index ae46b319acf420774acaa0a7a36dbdabc57f176e..c2629609e2abea177fc57167f8728bdcbec9126d 100644
(file)
--- 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;