Package org.cactoos.text
Class Repeated
- java.lang.Object
-
- org.cactoos.text.TextEnvelope
-
- org.cactoos.text.Repeated
-
- All Implemented Interfaces:
Text
public final class Repeated extends TextEnvelope
Repeat an text count times.There is no thread-safety guarantee.
- Since:
- 0.9
-
-
Constructor Summary
Constructors Constructor Description Repeated(CharSequence text, int count)
Ctor.Repeated(Text text, int count)
Ctor.
-
-
-
Constructor Detail
-
Repeated
public Repeated(CharSequence text, int count)
Ctor.- Parameters:
text
- A Stringcount
- How many times repeat the Text
-
Repeated
public Repeated(Text text, int count)
Ctor.- Parameters:
text
- The Textcount
- How many times repeat the Text
-
-