public class StringTool extends Object
| Constructor and Description |
|---|
StringTool()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
capitalizeFirstLetter(String string)
Creates a string in which the first character is capitalized.
|
String |
getClassToCast(String type)
Returns the class to be used to cast an Object.
|
String |
getDefaultValue(String type,
String overriddenDefaultValue)
Returns the default value for a type.
|
List<String> |
splitOnNewlines(String toSplit)
Creates a list of strings, separating a string when a newline is encountered.
|
public List<String> splitOnNewlines(String toSplit)
toSplit - The string to split.public String capitalizeFirstLetter(String string)
string - The string to use.public String getDefaultValue(String type, String overriddenDefaultValue)
type - The type.overriddenDefaultValue - The default value, as specified by developers.Copyright © 2000–2025 Apache Software Foundation. All rights reserved.