com.ebmwebsourcing.easycommons.lang
Class StringHelper

java.lang.Object
  extended by com.ebmwebsourcing.easycommons.lang.StringHelper

public class StringHelper
extends java.lang.Object

Author:
"Mathieu CARROLLE - mathieu.carrolle@petalslink.com"

Constructor Summary
StringHelper()
           
 
Method Summary
static boolean equal(java.lang.String a, java.lang.String b)
          Test the equality of the specified strings.
static boolean isNullOrEmpty(java.lang.String s)
          Return true if the String is null, contains only space character or is empty.
static java.lang.String nonNullValue(java.lang.Object obj)
          Return an empty String if obj is null, otherwise return obj.toString().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringHelper

public StringHelper()
Method Detail

isNullOrEmpty

public static boolean isNullOrEmpty(java.lang.String s)
Return true if the String is null, contains only space character or is empty.

Parameters:
s - a string
Returns:
true if the String is null, contains only space character or is empty, otherwise false

nonNullValue

public static java.lang.String nonNullValue(java.lang.Object obj)
Return an empty String if obj is null, otherwise return obj.toString().

Parameters:
obj -
Returns:

equal

public static final boolean equal(java.lang.String a,
                                  java.lang.String b)
Test the equality of the specified strings. test is : ( (a==b==null) || a.equals(b) )

Parameters:
a -
b -
Returns:


Copyright © 2011 Petals Link. All Rights Reserved.