Package org.refcodes.textual
Interface TextAccessor.TextProvider
-
- All Known Subinterfaces:
AsciiArtBuilder
,EscapeTextBuilder
,HorizAlignTextBuilder
,MoreTextBuilder
,OverwriteTextBuilder
,ReplaceTextBuilder
,SecretHintBuilder
,Text<B>
,TextBlockBuilder
,TextBorderBuilder
,TruncateTextBuilder
,VertAlignTextBuilder
- All Known Implementing Classes:
AsciiArtBuilderImpl
,EscapeTextBuilderImpl
,HorizAlignTextBuilderImpl
,MoreTextBuilderImpl
,OverwriteTextBuilderImpl
,ReplaceTextBuilderImpl
,SecretHintBuilderImpl
,TextBlockBuilderImpl
,TextBorderBuilderImpl
,TruncateTextBuilderImpl
,VertAlignTextBuilderImpl
- Enclosing interface:
- TextAccessor
public static interface TextAccessor.TextProvider
A provider interface provides a "toSomething(?)" method which converts a given instance into something else. TheTextAccessor.TextProvider
converts an implementing instance's state intoString
instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
toString()
TheString
being build by the builder upon the settings of the attributes.java.lang.String[]
toStrings()
TheString
s being build by the builder upon the settings of the attributes.
-
-
-
Method Detail
-
toStrings
java.lang.String[] toStrings()
TheString
s being build by the builder upon the settings of the attributes.- Returns:
- The according resulting
String
array
-
toString
java.lang.String toString()
TheString
being build by the builder upon the settings of the attributes. In case more then one line has been set as input and the functionality of the builder is applied to each line in separate, then this method returns all of them lines concatenated with a line break between each of them (implementation depended).- Overrides:
toString
in classjava.lang.Object
- Returns:
- The according resulting
String
-
-