com.google.sitebricks.rendering
Class Strings
java.lang.Object
com.google.sitebricks.rendering.Strings
public class Strings
- extends Object
A string-specific set of utilities.
- Author:
- Dhanji R. Prasanna (dhanji@gmail.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nonEmpty
public static void nonEmpty(String aString,
String message)
- Tests for null or emptiness of a string, throwing an
IllegalArgumentException if one is encountered.
- Parameters:
aString - Any string to test for emptiness.message - A message to throw inside an IllegalArgumentException if
the aString was empty.
empty
public static boolean empty(String string)
- Parameters:
string - Any string to test for emptiness.
- Returns:
- True if this string is empty or null.
join
public static String join(String[] strings,
char sep)
Copyright © 2014. All rights reserved.