com.wideplay.warp.persist.internal
Class Text

java.lang.Object
  extended by com.wideplay.warp.persist.internal.Text

public class Text
extends Object

A Strings utility.


Constructor Summary
Text()
           
 
Method Summary
static boolean empty(String str)
           
static void nonEmpty(String str, String message)
          An assertion utility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Text

public Text()
Method Detail

nonEmpty

public static void nonEmpty(String str,
                            String message)
An assertion utility

Parameters:
str - A string to test for emptiness (i.e. non null and not the empty string when trimmed)
message - A message to throw as an IllegalArgumentException
Throws:
IllegalArgumentException - Thrown with the message if this string is empty

empty

public static boolean empty(String str)
Parameters:
str - A string to test for emptiness (i.e. non null and not the empty string when trimmed)
Returns:
Returns true if the string is empty.