public final class ComparableText extends Object implements Text, Comparable<Text>
Iterable<Text> sorted = new Sorted<>(
new Mapped<>(
ComparableText::new,
new SplitText("The quick brown fox jumps over the lazy dog", " ")
)
)
There is no thread-safety guarantee.
Text.NoNulls
Constructor and Description |
---|
ComparableText(Text text)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
String |
asString()
Convert it to the string.
|
int |
compareTo(Text other) |
public ComparableText(Text text)
text
- The textpublic int compareTo(Text other)
compareTo
in interface Comparable<Text>
Copyright © 2017–2018 Cactoos. All rights reserved.