public final class ComparableText extends TextEnvelope implements 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.
Constructor and Description |
---|
ComparableText(Text text)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Text other) |
asString, equals, hashCode, toString
public ComparableText(Text text)
text
- The textpublic int compareTo(Text other)
compareTo
in interface Comparable<Text>
Copyright © 2017–2020 Cactoos. All rights reserved.