public final class SubText extends Object implements Text
There is no thread-safety guarantee.
Text.NoNulls
Constructor and Description |
---|
SubText(String text,
int strt)
Ctor.
|
SubText(String text,
int strt,
int finish)
Ctor.
|
SubText(Text text,
int strt)
Ctor.
|
SubText(Text text,
int strt,
int finish)
Ctor.
|
SubText(Text text,
Scalar<Integer> strt,
Scalar<Integer> finish)
Ctor.
|
SubText(Text text,
UncheckedScalar<Integer> strt,
UncheckedScalar<Integer> finish)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
String |
asString()
Convert it to the string.
|
int |
compareTo(Text text) |
public SubText(String text, int strt)
text
- The Stringstrt
- Start position in the textpublic SubText(String text, int strt, int finish)
text
- The Stringstrt
- Start position in the textfinish
- End position in the textpublic SubText(Text text, int strt)
text
- The Textstrt
- Start position in the textpublic SubText(Text text, int strt, int finish)
text
- The Textstrt
- Start position in the textfinish
- End position in the textpublic SubText(Text text, Scalar<Integer> strt, Scalar<Integer> finish)
text
- The Textstrt
- Start position in the textfinish
- End position in the textpublic SubText(Text text, UncheckedScalar<Integer> strt, UncheckedScalar<Integer> finish)
text
- The Textstrt
- Start position in the textfinish
- End position in 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.