de.fesenmeyer.dbnormalizer.core.util
Class StringUtil

java.lang.Object
  extended by de.fesenmeyer.dbnormalizer.core.util.StringUtil

public final class StringUtil
extends Object

Class containing utility methods for string operations.

Author:
DF

Constructor Summary
private StringUtil()
          Makes the constructor inaccessible.
 
Method Summary
static boolean isBlank(String str)
          Tests if a String variable is empty, that means if it is null or if it contains an empty string.
static String[] parseStringArray(String commaSeparatedStrings)
          Splits a string into an array of strings using the comma as delimiter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtil

private StringUtil()
Makes the constructor inaccessible.

Method Detail

parseStringArray

public static String[] parseStringArray(String commaSeparatedStrings)
Splits a string into an array of strings using the comma as delimiter.

Parameters:
commaSeparatedStrings - a string consisting of several comma-separated strings
Returns:
an array of strings

isBlank

public static boolean isBlank(String str)
Tests if a String variable is empty, that means if it is null or if it contains an empty string.

Parameters:
str - the String variable to test.
Returns:
true, if the String variable is empty; false, otherwise.