Class StringTools
java.lang.Object
org.hibernate.envers.internal.tools.StringTools
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappend(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 StringcapitalizeFirst(String fieldName) Capitalizes first letter of the stringstatic Stringstatic booleanstatic boolean
-
Constructor Details
-
StringTools
public StringTools()
-
-
Method Details
-
isEmpty
-
isEmpty
-
getLastComponent
- 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
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.
-
capitalizeFirst
Capitalizes first letter of the string- Parameters:
fieldName- field name- Returns:
- capitalized string
-