public final class Abbreviated extends TextEnvelope
There is no thread-safety guarantee.
Constructor and Description |
---|
Abbreviated(String text)
Ctor.
|
Abbreviated(String text,
int max)
Ctor.
|
Abbreviated(Text text)
Ctor.
|
Abbreviated(Text text,
int max)
Ctor.
|
public Abbreviated(String text)
By default, the max line width is 80 characters.
text
- The Textpublic Abbreviated(Text text)
By default, the max line width is 80 characters.
text
- The Textpublic Abbreviated(String text, int max)
text
- A Stringmax
- Max width of the result stringpublic Abbreviated(Text text, int max)
text
- The Textmax
- Max width of the result stringCopyright © 2017–2020 Cactoos. All rights reserved.