Class StringTools
- java.lang.Object
-
- org.hibernate.envers.internal.tools.StringTools
-
public abstract class StringTools extends Object
-
-
Constructor Summary
Constructors Constructor Description StringTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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 stringstatic String
getLastComponent(String s)
static boolean
isEmpty(Object o)
static boolean
isEmpty(String s)
-
-
-
Method Detail
-
isEmpty
public static boolean isEmpty(String s)
-
isEmpty
public static boolean isEmpty(Object o)
-
getLastComponent
public static String getLastComponent(String s)
- Parameters:
s
- String, from which to get the last component.- Returns:
- The last component of the dot-separated string
s
. For example, for a string "a.b.c", the result is "c".
-
append
public 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. For example, for an interator "a" "b" "c" and separator ":" the output is "a:b:c".- Parameters:
sb
- String builder, to which to append.contents
- Strings to be appended.separator
- Separator between subsequent content.
-
-