Package de.srsoftware.tools
Klasse Strings
java.lang.Object
de.srsoftware.tools.Strings
Utilities for String handling
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic Stringconvert a string to camel case: every character following a space is converted to uppercase, spaces are removedstatic Stringstuff the placeholders in the text with the string representations of the objects, don't indentstatic Stringstuff the placeholders in the text with the string representations of the objects, don't indentstatic Stringhex(byte[] bytes) get a hexadecimal representation of the byte arraystatic Stringuuid()shorthand to create a new UUID
-
Methodendetails
-
camelCase
convert a string to camel case: every character following a space is converted to uppercase, spaces are removed- Parameter:
text- the text to be converted- Gibt zurück:
- the camelcase version of the provided text
-
fill
stuff the placeholders in the text with the string representations of the objects, don't indent- Parameter:
indent- add whitespace in front of the linetext- a text with {} placeholdersfills- the fills to apply- Gibt zurück:
- the text with placeholders replaced
-
fill
stuff the placeholders in the text with the string representations of the objects, don't indent- Parameter:
text- a text with {} placeholdersfills- the fills to apply- Gibt zurück:
- the text with placeholders replaced
-
hex
get a hexadecimal representation of the byte array- Parameter:
bytes- a byte array to convert to a hex string- Gibt zurück:
- a string containing a hexadecimal representation of the given byte array
-
uuid
shorthand to create a new UUID- Gibt zurück:
- a random uuid
-