Skip to content

Commit

Permalink
(#1579) Improve javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoss committed Apr 15, 2021
1 parent 7259326 commit a19ec50
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/cactoos/text/Abbreviated.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public final class Abbreviated extends TextEnvelope {
*
* <p> By default, the max line width is 80 characters.
*
* @param text The Text
* @param text The CharSequence
*/
public Abbreviated(final CharSequence text) {
this(new TextOf(text));
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/cactoos/text/Base64Decoded.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public final class Base64Decoded extends TextEnvelope {
/**
* Ctor.
*
* @param input The String
* @param input The CharSequence
*/
public Base64Decoded(final CharSequence input) {
this(new TextOf(input));
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/cactoos/text/Base64Encoded.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public final class Base64Encoded extends TextEnvelope {
/**
* Ctor.
*
* @param input The String
* @param input The CharSequence
*/
public Base64Encoded(final CharSequence input) {
this(new TextOf(input));
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/cactoos/text/Concatenated.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public Concatenated(final Text... txts) {

/**
* Ctor.
* @param strs Strings to be concatenated
* @param strs CharSequences to be concatenated
*/
public Concatenated(final CharSequence... strs) {
this(
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/cactoos/text/PrefixOf.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public final class PrefixOf extends TextEnvelope {

/**
* Ctor.
* @param text Text representing the text value
* @param boundary String to which text will be split
* @param text CharSequence representing the text value
* @param boundary CharSequence to which text will be split
*/
public PrefixOf(final CharSequence text, final CharSequence boundary) {
this(new TextOf(text), boundary);
Expand All @@ -50,7 +50,7 @@ public PrefixOf(final CharSequence text, final CharSequence boundary) {
/**
* Ctor.
* @param text Text representing the text value
* @param boundary String to which text will be split
* @param boundary CharSequence to which text will be split
*/
public PrefixOf(final Text text, final CharSequence boundary) {
this(text, new TextOf(boundary));
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/org/cactoos/text/TextOf.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,20 +169,20 @@ public TextOf(final Reader rdr, final int max, final Charset cset) {
/**
* Ctor.
*
* @param builder The String builder
* @param str The CharSequence
*/
public TextOf(final CharSequence builder) {
this(new BytesOf(builder));
public TextOf(final CharSequence str) {
this(new BytesOf(str));
}

/**
* Ctor.
*
* @param builder The String builder
* @param str The CharSequence
* @param cset The Charset
*/
public TextOf(final CharSequence builder, final Charset cset) {
this(new BytesOf(builder, cset), cset);
public TextOf(final CharSequence str, final Charset cset) {
this(new BytesOf(str, cset), cset);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/cactoos/text/TextOfScalar.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
public final class TextOfScalar implements Text {

/**
* String value of the envelope.
* Value of the envelope.
*/
private final Scalar<? extends CharSequence> origin;

/**
* Ctor.
*
* @param scalar The Scalar of String
* @param scalar The scalar of CharSequence
*/
public TextOfScalar(final Scalar<? extends CharSequence> scalar) {
this.origin = scalar;
Expand Down

0 comments on commit a19ec50

Please sign in to comment.