public final class RepeatedText extends Object implements Text
There is no thread-safety guarantee.
Text.NoNulls
Constructor and Description |
---|
RepeatedText(String text,
int count)
Ctor.
|
RepeatedText(Text text,
int count)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
String |
asString()
Convert it to the string.
|
int |
compareTo(Text text) |
public RepeatedText(String text, int count)
text
- A Stringcount
- How many times repeat the Textpublic RepeatedText(Text text, int count)
text
- The Textcount
- How many times repeat the Textpublic String asString() throws IOException
Text
asString
in interface Text
IOException
- If failspublic int compareTo(Text text)
compareTo
in interface Comparable<Text>
Copyright © 2017 Cactoos. All rights reserved.