Klasse StringToolUnit
java.lang.Object
ch.nolix.core.commontypetool.stringtool.StringToolUnit
- Alle implementierten Schnittstellen:
IStringTool
The
StringToolUnit provides methods to handle Strings.- Version:
- 2016-01-01
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer 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)
-
Konstruktordetails
-
StringToolUnit
public StringToolUnit()
-
-
Methodendetails
-
createStringWithoutLastCharacters
- Angegeben von:
createStringWithoutLastCharactersin SchnittstelleIStringTool- Parameter:
string-n-- Gibt zurück:
- a new
Stringthat is like the given string without the last n characters.
-
createTabs
- Angegeben von:
createTabsin SchnittstelleIStringTool- Parameter:
tabCount-- Gibt zurück:
- a new
Stringconsisting of as many tabulators as the given tabCount says.
-
getInBraces
- Angegeben von:
getInBracesin SchnittstelleIStringTool- Parameter:
object-- Gibt zurück:
- the
Stringrepresentation of the given object in braces.
-
getInParentheses
- Angegeben von:
getInParenthesesin SchnittstelleIStringTool- Parameter:
object-objects-- Gibt zurück:
- the
Stringrepresentation of the given object and objects in parentheses.
-
getInSingleQuotes
- Angegeben von:
getInSingleQuotesin SchnittstelleIStringTool- Parameter:
object-- Gibt zurück:
- the
Stringrepresentation of the given object in single quotes.
-
toBoolean
- Angegeben von:
toBooleanin SchnittstelleIStringTool- Parameter:
string-- Gibt zurück:
- the boolean the given string represents.
-
toDouble
- Angegeben von:
toDoublein SchnittstelleIStringTool- Parameter:
string-- Gibt zurück:
- the double the given string represents.
-
toPascalCase
- Angegeben von:
toPascalCasein SchnittstelleIStringTool- Parameter:
string-- Gibt zurück:
- a new
Stringin pascal case for the given string.
-
toCapitalSnakeCase
- Angegeben von:
toCapitalSnakeCasein SchnittstelleIStringTool- Parameter:
string-- Gibt zurück:
- a new
Stringin capital snake case for the given string.
-