org.hibernate.envers.tools
Class StringTools
java.lang.Object
org.hibernate.envers.tools.StringTools
public class StringTools
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringTools
public StringTools()
isEmpty
public static boolean isEmpty(String s)
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.
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.