org.refcodes.mixin.ColumnWidthAccessor
, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<TextLineBuilder>
, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator
, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty
public class TextLineBuilder extends Object implements org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<TextLineBuilder>, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty
org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B extends org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B>>, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty
Constructor | Description |
---|---|
TextLineBuilder() |
Modifier and Type | Method | Description |
---|---|---|
static String |
asString(int aLength,
char aFillChar) |
Returns a
String with the given length and containing only the
provided fill character. |
int |
getColumnWidth() |
|
char |
getLineChar() |
Retrieves the line char from the line char property.
|
void |
setColumnWidth(int aColumnWidth) |
|
void |
setLineChar(char aLineChar) |
Sets the line char for the line char property.
|
String |
toString() |
The
String being build by the builder upon the settings of the
attributes. |
TextLineBuilder |
withColumnWidth(int aColumnWidth) |
|
TextLineBuilder |
withLineChar(char aLineChar) |
Sets the line char for the line char property.
|
public TextLineBuilder withColumnWidth(int aColumnWidth)
withColumnWidth
in interface org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<TextLineBuilder>
public void setColumnWidth(int aColumnWidth)
setColumnWidth
in interface org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator
public int getColumnWidth()
getColumnWidth
in interface org.refcodes.mixin.ColumnWidthAccessor
public char getLineChar()
public void setLineChar(char aLineChar)
aLineChar
- The line char to be stored by the line char property.public TextLineBuilder withLineChar(char aLineChar)
aLineChar
- The line char to be stored by the line char property.public String toString()
String
being build by the builder upon the settings of the
attributes.public static String asString(int aLength, char aFillChar)
String
with the given length and containing only the
provided fill character.aLength
- The length to be reached.aFillChar
- The char to be used for filling upString
filled with the fill character till the
provided length.Copyright © 2021. All rights reserved.