Package org.cactoos.text
Text.
- Since:
- 0.1
-
Class Summary Class Description Abbreviated Abbreviates a Text using ellipses.Base64Decoded Decodes the origin text using the Base64 encoding scheme.Base64Encoded Encodes the origin text using the Base64 encoding scheme.Capitalized Text in capitalized case, changed the first character to title case as perCharacter.toTitleCase(int)
, no other characters are changed.ComparableText Text implementing Comparable.
Below the example how you can sort words in a string:Concatenated Concatenate a Text.Contains Tests if this Text contains other Text.EndsWith Tests if this Text ends with the specified suffix.Flattened FormattedText Text in Sprinf format.HexOf Hexadecimal representation of Bytes.IoCheckedText Text that doesn't throw checkedException
, but only throwsIOException
.IsBlank Determines if text is blank (consists of spaces) or not.IsEmpty Determines if text is empty or not.Joined Join a Text.Lowered Text in lower case.Mapped Mapped text.Newline Returns a text that is the default system line separator.NoNulls Text check for no nulls.Normalized Normalize (replace sequences of whitespace characters by a single space) a Text.PaddedStart Text padded at start to reach the given length.PrefixOf Returns a text that is before given boundary.Randomized Randomized text.Repeated Repeat an text count times.Replaced Replace the Text.Reversed Reverse the Text.Rotated Rotate (circular shift) a String of shift characters.Split Split the Text.StartsWith Determines if text starts with a given prefix.Sticky Cached version of a Text.Strict Validates encapsulated text using predicateSub Extract a substring from a Text.SuffixOf Returns a text that is after given boundary.SwappedCase Swaps the case of a Text changing upper and title case to lower case, and lower case to upper case.Synced Text that is thread-safe.TextEnvelope Text
envelope.TextOf TextOfTextOfDateTime Text of date timeTextOfScalar Text ofScalar
TextOfString Text ofString
Trimmed Text without control characters (char <= 32) from both ends.TrimmedLeft Text without control characters (char <= 32) only from left.TrimmedRight Text without control characters (char <= 32) only from right.UncheckedText Text that doesn't throw checkedException
.Upper Text in upper case.