File tree Expand file tree Collapse file tree
src/main/java/org/cactoos/text Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111
1212/**
1313 * Join a Text.
14- *
14+ *
1515 * <p>This class joins multiple {@link Text} instances into a single
1616 * text using a specified delimiter between elements.</p>
1717 * <p>There is no thread-safety guarantee.
2727 * );
2828 * joined.asString(); // "apple, banana, orange"
2929 * }</pre>
30- *
30+ *
3131 * @since 0.9
3232 */
3333public final class Joined extends TextEnvelope {
Original file line number Diff line number Diff line change 88import org .cactoos .Text ;
99
1010/**
11- *
11+ *
1212 * Text in lower case.
13- *
13+ *
1414 * <p>This class converts the original text to lower case
1515 * using a specified {@link Locale}. If no locale is provided,
1616 * {@link Locale#ENGLISH} is used by default.</p>
17- *
17+ *
1818 * <p>There is no thread-safety guarantee.
1919 *
2020 * <p>Example:</p>
Original file line number Diff line number Diff line change 1212 *
1313 * <p>This class applies a {@link Func} to the original text lazily,
1414 * i.e., the function is executed only when {@link Text#asString()} is called.</p>
15- *
15+ *
1616 * <p>Example usage:</p>
1717 *
1818 * <pre>{@code
1919 * Text original = new TextOf("hello");
2020 * Text upper = new Mapped(str -> str.toUpperCase(), original);
2121 * upper.asString(); // "HELLO"
2222 * }</pre>
23- *
23+ *
2424 * @since 0.47
2525 */
2626public final class Mapped extends TextEnvelope {
Original file line number Diff line number Diff line change 88
99/**
1010 * Text without control characters (char <= 32) from both ends.
11- *
11+ *
1212 * <p>This class trims the original text using
1313 * {@link String#trim()}, removing whitespace characters
1414 * from both the beginning and the end of the text.</p>
1515 *
1616 * <p>
1717 * There is no thread-safety guarantee.
18- *
18+ *
1919 *<p>Example:</p>
2020 * <pre>{@code
2121 * Text text = new Trimmed(new TextOf(" hello world "));
2222 * text.asString(); // "hello world"
2323 * }</pre>
24- *
24+ *
2525 * @since 0.1
2626 */
2727public final class Trimmed extends TextEnvelope {
2828
2929 /**
3030 * Ctor.
31- *
31+ *
3232 * Creates a trimmed text from the given
3333 * @param text The text
3434 */
Original file line number Diff line number Diff line change 1919 * Text text1 = new Upper(new TextOf("hello"));
2020 * text1.asString(); // "HELLO
2121 * }</pre>
22- *
22+ *
2323 * @since 0.1
2424 */
2525public final class Upper extends TextEnvelope {
2626
2727 /**
2828 * Ctor.
29- *
29+ *
3030 * <p>Creates an upper-case text from a character sequence
3131 * using {@link Locale#ENGLISH}.</p>
32- *
32+ *
3333 * @param text The text
3434 */
3535 public Upper (final CharSequence text ) {
@@ -48,10 +48,10 @@ public Upper(final Text text) {
4848
4949 /**
5050 * Ctor.
51- *
51+ *
5252 * <p>Creates an upper-case text from a {@link Text}
5353 * using the given {@link Locale}.</p>
54- *
54+ *
5555 * @param text The text
5656 * @param locale Locale
5757 */
You can’t perform that action at this time.
0 commit comments