com.wideplay.warp.persist.internal
Class Text
java.lang.Object
com.wideplay.warp.persist.internal.Text
public class Text
- extends Object
A Strings utility.
Constructor Summary |
Text()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Text
public Text()
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.