java.lang.Object
ushiosan.jvm.UString
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull @Unmodifiable CharSequencecapitalize(@NotNull CharSequence content, boolean allContent) Transforms the text string and converts each word start to an uppercase letterstatic @NotNull @Unmodifiable CharSequencecapitalizeWord(@NotNull CharSequence content) Change the first letter of the word to a capital letter.static @NotNull @Unmodifiable CharSequencerandomSequence(@NotNull Random random, int size, char... ignore) Generate a pseudo random text string, depending on the selected settingstatic @NotNull @Unmodifiable CharSequencerandomSequence(@NotNull Random random, int size, @NotNull UString.UGeneratorType generatorType, char... ignore) Generate a pseudo random text string, depending on the selected setting
-
Method Details
-
capitalize
@NotNull public static @NotNull @Unmodifiable CharSequence capitalize(@NotNull @NotNull CharSequence content, boolean allContent) Transforms the text string and converts each word start to an uppercase letter- Parameters:
content- the content to convertallContent- option used to convert all words or only the first word of the entire content- Returns:
- capitalize content string
-
capitalizeWord
@NotNull public static @NotNull @Unmodifiable CharSequence capitalizeWord(@NotNull @NotNull CharSequence content) Change the first letter of the word to a capital letter.This method cleans the content of spaces and only converts to a word and not a complete content.
- Parameters:
content- the content to convert- Returns:
- the converted content
-
randomSequence
@NotNull public static @NotNull @Unmodifiable CharSequence randomSequence(@NotNull @NotNull Random random, int size, @NotNull @NotNull UString.UGeneratorType generatorType, char... ignore) Generate a pseudo random text string, depending on the selected setting- Parameters:
random- an instance of random type to generate the contentsize- size of characters that the string will havegeneratorType- the type of configuration usedignore- all the characters you want to ignore within the result- Returns:
- a pseudo random text string
- See Also:
-
randomSequence
@NotNull public static @NotNull @Unmodifiable CharSequence randomSequence(@NotNull @NotNull Random random, int size, char... ignore) Generate a pseudo random text string, depending on the selected setting- Parameters:
random- an instance of random type to generate the contentsize- size of characters that the string will haveignore- all the characters you want to ignore within the result- Returns:
- a pseudo random text string
- See Also:
-