public class TextLineBuilderImpl extends Object implements TextLineBuilder
org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B extends org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B>>, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty
Constructor and Description |
---|
TextLineBuilderImpl() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected static String |
toLine(int aLength,
char aFillChar)
Returns a
String with the given length and containing only the
provided fill character. |
String |
toString()
The
String being build by the builder upon the settings of the
attributes. |
TextLineBuilder |
withColumnWidth(int aColumnWidth) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
withLineChar
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()
TextLineBuilder
getLineChar
in interface TextLineBuilder
public void setLineChar(char aLineChar)
TextLineBuilder
setLineChar
in interface TextLineBuilder
aLineChar
- The line char to be stored by the line char property.public String toString()
TextLineBuilder
String
being build by the builder upon the settings of the
attributes.toString
in interface TextLineBuilder
toString
in class Object
String
protected static String toLine(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 © 2017. All rights reserved.