public abstract class StringTools extends Object
| Constructor and Description | 
|---|
StringTools()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
append(StringBuilder sb,
      Iterator<String> contents,
      String separator)
To the given string builder, appends all strings in the given iterator, separating them with the given
 separator. 
 | 
static String | 
capitalizeFirst(String fieldName)
Capitalizes first letter of the string 
 | 
static String | 
getLastComponent(String s)  | 
static boolean | 
isEmpty(Object o)  | 
static boolean | 
isEmpty(String s)  | 
public static boolean isEmpty(String s)
public static boolean isEmpty(Object o)
public static String getLastComponent(String s)
s - String, from which to get the last component.s. For example, for a string
         "a.b.c", the result is "c".public static void append(StringBuilder sb, Iterator<String> contents, String separator)
sb - String builder, to which to append.contents - Strings to be appended.separator - Separator between subsequent content.Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.