public final class JoinedText extends Object implements Text
There is no thread-safety guarantee.
Text.NoNulls
Constructor and Description |
---|
JoinedText(String delimit,
Iterable<String> strs)
Ctor.
|
JoinedText(String delimit,
String... strs)
Ctor.
|
JoinedText(Text delimit,
Iterable<Text> txts)
Ctor.
|
JoinedText(Text delimit,
Text... txts)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
String |
asString()
Convert it to the string.
|
int |
compareTo(Text text) |
public JoinedText(String delimit, String... strs)
delimit
- Delimit among stringsstrs
- Strings to be joinedpublic JoinedText(String delimit, Iterable<String> strs)
delimit
- Delimit among stringsstrs
- Strings to be joinedpublic JoinedText(Text delimit, Text... txts)
delimit
- Delimit among textstxts
- Texts to be joinedpublic 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.