kactoos-jvm / nnl.rocks.kactoos.text / TextEnvelope
abstract class TextEnvelope : Text, Comparable<Text>
Text envelope that provides equals and hashCode methods.
origin - String value of the envelope.
Since 0.4
| Name | Summary |
|---|---|
| <init> | TextEnvelope(text: Text)TextEnvelope(scalar: Scalar<String>)TextEnvelope(string: String)TextEnvelope(origin: KScalar<String>)Text envelope that provides equals and hashCode methods. |
| Name | Summary |
|---|---|
| asString | open fun asString(): StringConvert it to the string. |
| compareTo | open fun compareTo(other: Text): Int |
| equals | open fun equals(other: Any?): Boolean |
| hashCode | open fun hashCode(): Int |
| toString | open fun toString(): String |
| Name | Summary |
|---|---|
| AbbreviatedText | class AbbreviatedText : TextEnvelopeAbbreviates a Text using ellipses. |
| HexOf | class HexOf : TextEnvelopeHexadecimal representation of Bytes. |
| JDKLowerText | class JDKLowerText : TextEnvelopeText in lower case. |
| JDKTextOf | class JDKTextOf : TextEnvelopeTextOf various inputs available on JDK. |
| JDKUpperText | class JDKUpperText : TextEnvelopeText in upper case. |
| JoinedText | class JoinedText : TextEnvelopeJoin a Text. |
| LowerText | class LowerText : TextEnvelopeText in lower case. |
| NormalizedText | class NormalizedText : TextEnvelopeNormalize (replace sequences of whitespace characters by a single space) a Text. |
| PaddedEndText | class PaddedEndText : TextEnvelopeText padded at end to reach the given length. |
| PaddedStartText | class PaddedStartText : TextEnvelopeText padded at start to reach the given length. |
| RepeatedText | class RepeatedText : TextEnvelopeRepeat an text count times. |
| ReplacedText | class ReplacedText : TextEnvelopeReplace the Text. |
| ReversedText | class ReversedText : TextEnvelopeReverse the Text. |
| RotatedText | class RotatedText : TextEnvelopeRotate (circular shift) a String of shift characters. |
| SubText | class SubText : TextEnvelopeExtract a substring from a Text. |
| SwappedCaseText | class SwappedCaseText : TextEnvelopeSwaps the case of a Text changing upper and title case to lower case, and lower case to upper case. |
| SyncText | class SyncText : TextEnvelopeText that is thread-safe. |
| TextBase64 | class TextBase64 : TextEnvelopeEncodes the origin text using the Base64 encoding scheme. |
| TextOf | class TextOf : TextEnvelopeText from various inputs |
| TrimmedLeftText | class TrimmedLeftText : TextEnvelopeText with leading whitespace removed. |
| TrimmedRightText | class TrimmedRightText : TextEnvelopeText with trailing whitespace removed. |
| TrimmedText | class TrimmedText : TextEnvelopeText without whitespace characters from both ends. |
| UpperText | class UpperText : TextEnvelopeText in upper case. |