Schnittstelle IStringTool
- Alle bekannten Implementierungsklassen:
StringToolUnit
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungcreateStringWithoutLastCharacters(String string, int n) createTabs(int tabCount) getInBraces(Object object) getInParentheses(Object object, Object... objects) getInSingleQuotes(Object object) booleantoCapitalSnakeCase(String string) doubletoPascalCase(String string) doubletoProportion(String string)
-
Methodendetails
-
createStringWithoutLastCharacters
-
createTabs
- Parameter:
tabCount-- Gibt zurück:
- a new
Stringconsisting of as many tabulators as the given tabCount says. - Löst aus:
RuntimeException- if the given tabCount is negative.
-
getInBraces
- Parameter:
object-- Gibt zurück:
- the
Stringrepresentation of the given object in braces. - Löst aus:
RuntimeException- if the given object is null.
-
getInParentheses
- Parameter:
object-objects-- Gibt zurück:
- the
Stringrepresentation of the given object and objects in parentheses. - Löst aus:
RuntimeException- if the given object is null.RuntimeException- if the given objects is null.RuntimeException- if one of the given objects is null.
-
getInSingleQuotes
- Parameter:
object-- Gibt zurück:
- the
Stringrepresentation of the given object in single quotes. - Löst aus:
RuntimeException- if the given object is null.
-
toBoolean
- Parameter:
string-- Gibt zurück:
- the boolean the given string represents.
- Löst aus:
RuntimeException- if the given string does not represent a boolean.
-
toCapitalSnakeCase
-
toDouble
- Parameter:
string-- Gibt zurück:
- the double the given string represents.
- Löst aus:
RuntimeException- if the given string does not represent a double.
-
toPascalCase
-
toProportion
- Parameter:
string-- Gibt zurück:
- a proportion in [0, 1] from the given string.
- Löst aus:
RuntimeException- if the given string does not represent a proportion.
-