Package org.cactoos.text
Class FormattedText
- java.lang.Object
-
- org.cactoos.text.TextEnvelope
-
- org.cactoos.text.FormattedText
-
- All Implemented Interfaces:
Text
public final class FormattedText extends TextEnvelope
Text in Sprinf format.There is no thread-safety guarantee.
- Since:
- 0.1
-
-
Constructor Summary
Constructors Constructor Description FormattedText(CharSequence ptn, Collection<?> arguments)
New formatted string with default locale.FormattedText(CharSequence ptn, Locale locale, Collection<?> arguments)
New formatted string with specified locale.FormattedText(String ptn, Object... arguments)
New formatted string with default locale.FormattedText(String ptn, Locale locale, Object... arguments)
New formatted string with specified locale.FormattedText(Text ptn, Object... arguments)
New formatted string with default locale.FormattedText(Text ptn, Collection<Object> arguments)
New formatted string with default locale.FormattedText(Text ptn, Locale locale, Object... arguments)
New formatted string with specified locale.FormattedText(Text ptn, Locale locale, Collection<?> args)
New formatted string with specified locale.
-
-
-
Constructor Detail
-
FormattedText
public FormattedText(String ptn, Object... arguments)
New formatted string with default locale.- Parameters:
ptn
- Patternarguments
- Arguments
-
FormattedText
public FormattedText(Text ptn, Object... arguments)
New formatted string with default locale.- Parameters:
ptn
- Patternarguments
- Arguments
-
FormattedText
public FormattedText(String ptn, Locale locale, Object... arguments)
New formatted string with specified locale.- Parameters:
ptn
- Patternlocale
- Format localearguments
- Arguments
-
FormattedText
public FormattedText(Text ptn, Locale locale, Object... arguments)
New formatted string with specified locale.- Parameters:
ptn
- Patternlocale
- Format localearguments
- Arguments
-
FormattedText
public FormattedText(CharSequence ptn, Collection<?> arguments)
New formatted string with default locale.- Parameters:
ptn
- Patternarguments
- Arguments
-
FormattedText
public FormattedText(Text ptn, Collection<Object> arguments)
New formatted string with default locale.- Parameters:
ptn
- Patternarguments
- Arguments
-
FormattedText
public FormattedText(CharSequence ptn, Locale locale, Collection<?> arguments)
New formatted string with specified locale.- Parameters:
ptn
- Patternlocale
- Format localearguments
- Arguments
-
FormattedText
public FormattedText(Text ptn, Locale locale, Collection<?> args)
New formatted string with specified locale.- Parameters:
ptn
- Patternlocale
- Format localeargs
- Arguments
-
-