com.softwareag.centrasite.appl.framework.utils
Class StringUtil

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.utils.StringUtil

public final class StringUtil
extends java.lang.Object

String based utility methods.


Constructor Summary
StringUtil()
           
 
Method Summary
static boolean isNonEmpty(java.lang.String s)
          Is the specified string NOT null, NOT the empty string AND NOT only spaces?
static boolean isNullOrEmpty(java.lang.String s)
          Is the specified string null, the empty string or only consists of spaces?
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtil

public StringUtil()
Method Detail

isNullOrEmpty

public static boolean isNullOrEmpty(java.lang.String s)
Is the specified string null, the empty string or only consists of spaces?

Parameters:
s - string to check
Returns:
true if null, empty string or only spaces

isNonEmpty

public static boolean isNonEmpty(java.lang.String s)
Is the specified string NOT null, NOT the empty string AND NOT only spaces?

Parameters:
s - string to check
Returns:
true if non-empty