org.refcodes.mixin.ColumnWidthAccessor
, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<TextLineBuilder>
, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator
, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty
TextLineBuilderImpl
public interface TextLineBuilder extends org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<TextLineBuilder>, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty
SystemUtility.getTerminalWidth()
method, you can create lines
consuming the full width of your terminal.org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B extends org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B>>, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty
Modifier and Type | Method | Description |
---|---|---|
char |
getLineChar() |
Retrieves the line char from the line char property.
|
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. |
default String |
toString(int aLength,
char aFillChar) |
Returns a
String with the given length and containing only the
provided fill character. |
default TextLineBuilder |
withLineChar(char aLineChar) |
Sets the line char for the line char property.
|
char getLineChar()
void setLineChar(char aLineChar)
aLineChar
- The line char to be stored by the line char property.default TextLineBuilder withLineChar(char aLineChar)
aLineChar
- The line char to be stored by the line char property.String toString()
String
being build by the builder upon the settings of the
attributes.default String toString(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 © 2018. All rights reserved.