utils
Class StringUtils

java.lang.Object
  extended by utils.StringUtils

public class StringUtils
extends java.lang.Object

string utils


Constructor Summary
StringUtils()
           
 
Method Summary
static java.lang.String buildString(java.lang.String... strings)
          build string from list of strings
static boolean isEmpty(java.lang.String s)
          Check if a string has non-empty content.
static java.lang.String listToString(java.util.List<? extends java.lang.Object> list)
           
static java.lang.String listToString(java.util.List<? extends java.lang.Object> list, java.lang.Character quote, java.lang.Character separator)
           
static java.lang.String subString(java.lang.String string, int len)
          substring
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

isEmpty

public static boolean isEmpty(java.lang.String s)
Check if a string has non-empty content.

Parameters:
s - the string
Returns:
true if the string is null, empty or comprised only of empty characters spaces, tabs, \n, etc), otherwise false

buildString

public static java.lang.String buildString(java.lang.String... strings)
build string from list of strings

Parameters:
strings - list of strings
Returns:
concatenated string

subString

public static java.lang.String subString(java.lang.String string,
                                         int len)
substring

Parameters:
string - base string
len - length of new string
Returns:
new substring

listToString

public static java.lang.String listToString(java.util.List<? extends java.lang.Object> list)

listToString

public static java.lang.String listToString(java.util.List<? extends java.lang.Object> list,
                                            java.lang.Character quote,
                                            java.lang.Character separator)