B
- the generic typeTextAccessor
, TextAccessor.TextBuilder<Text<B>>
, TextAccessor.TextMutator
, TextAccessor.TextProperty
, TextAccessor.TextProvider
EscapeTextBuilder
AsciiArtBuilder
, EscapeTextBuilderImpl
, HorizAlignTextBuilder
, MoreTextBuilder
, OverwriteTextBuilder
, ReplaceTextBuilder
, SecretHintBuilder
, TextBlockBuilder
, TextBorderBuilder
, TruncateTextBuilder
, VertAlignTextBuilder
public interface Text<B extends Text<B>> extends TextAccessor.TextProperty, TextAccessor.TextBuilder<Text<B>>, TextAccessor.TextProvider
TextAccessor.TextBuilder<B extends TextAccessor.TextBuilder<B>>, TextAccessor.TextMutator, TextAccessor.TextProperty, TextAccessor.TextProvider
Modifier and Type | Method | Description |
---|---|---|
String |
toString(String... aText) |
Race condition safe shortcut for using
withText(String...)
followed by TextAccessor.TextProvider.toString() . |
String[] |
toStrings(String... aText) |
Race condition safe shortcut for using
withText(String...)
followed by TextAccessor.TextProvider.toStrings() . |
default B |
withText(String... aText) |
Sets the text for the text property.
|
getText
withText
setText, setText
letText, letText
toString, toStrings
default B withText(String... aText)
withText
in interface TextAccessor.TextBuilder<B extends Text<B>>
aText
- The text to be stored by the text property.String[] toStrings(String... aText)
withText(String...)
followed by TextAccessor.TextProvider.toStrings()
. Implementation requirements: This
method must not(!) be implemented by calling withText(String...)
followed by TextAccessor.TextProvider.toStrings()
(do not change the text property) as
this would not be thread safe!aText
- The text to be processed.String
arrayString toString(String... aText)
withText(String...)
followed by TextAccessor.TextProvider.toString()
. Implementation requirements: This method
must not(!) be implemented by calling withText(String...)
followed by TextAccessor.TextProvider.toString()
(do not change the text property) as this
would not be thread safe!aText
- The text to be processed.String
Copyright © 2021. All rights reserved.