public final class Strings extends Object
String manipulation utils.
| Modifier and Type | Class and Description |
|---|---|
static class |
Strings.NamingContainerDataHolder |
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Joiner |
DOT_JOINER |
| Modifier and Type | Method and Description |
|---|---|
static String |
cut(String in,
int size)
Remove characters from string end |
static String |
firstNonEmpty(String... strings) |
static String |
firstToLowerCase(String in)
Change case of the first character to lower, as it required by the Java Beans property and setter/getter method name conventions: |
static String |
firstToUpperCase(String in)
Change case of the first character to upper, as it required by the Java Beans property and setter/getter method name conventions: |
static boolean |
isEmpty(String type)
Check string for null or empty value |
public static String cut(String in, int size)
Remove characters from string end
in - input stringsize - number of characters to remove.public static String firstToLowerCase(String in)
Change case of the first character to lower, as it required by the Java Beans property and setter/getter method name conventions:
"PropertyFoo" will be changed to "propertyFoo"
in - in with first character changed to lower case.public static String firstToUpperCase(String in)
Change case of the first character to upper, as it required by the Java Beans property and setter/getter method name conventions:
"propertyFoo" will be changed to "PropertyFoo"
in - in with first character changed to lower case.public static boolean isEmpty(String type)
Check string for null or empty value
type - type is null or zero-length string.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.