Package org.cactoos.text
Class Sub
- java.lang.Object
-
- org.cactoos.text.TextEnvelope
-
- org.cactoos.text.Sub
-
- All Implemented Interfaces:
Text
public final class Sub extends TextEnvelope
Extract a substring from a Text.There is no thread-safety guarantee.
- Since:
- 0.11
-
-
Constructor Summary
Constructors Constructor Description Sub(CharSequence text, int strt)
Ctor.Sub(CharSequence text, int strt, int finish)
Ctor.Sub(Text text, int strt)
Ctor.Sub(Text text, int strt, int finish)
Ctor.Sub(Text text, int strt, Func<? super String,Integer> finish)
Ctor.Sub(Text text, int strt, Scalar<Integer> finish)
Ctor.Sub(Text text, Func<? super String,Integer> strt)
Ctor.Sub(Text text, Func<? super String,Integer> start, Func<? super String,Integer> end)
Ctor.Sub(Text text, Scalar<Integer> strt)
Ctor.Sub(Text text, Scalar<Integer> strt, Func<? super String,Integer> finish)
Ctor.Sub(Text text, Scalar<Integer> strt, Scalar<Integer> finish)
Ctor.
-
-
-
Constructor Detail
-
Sub
public Sub(CharSequence text, int strt)
Ctor.- Parameters:
text
- The Stringstrt
- Start position in the text
-
Sub
public Sub(CharSequence text, int strt, int finish)
Ctor.- Parameters:
text
- The Stringstrt
- Start position in the textfinish
- End position in the text
-
Sub
public Sub(Text text, int strt)
Ctor.- Parameters:
text
- The Textstrt
- Start position in the text
-
Sub
public Sub(Text text, Scalar<Integer> strt)
Ctor.- Parameters:
text
- The Textstrt
- Start position in the text
-
Sub
public Sub(Text text, Func<? super String,Integer> strt)
Ctor.- Parameters:
text
- The Textstrt
- Start position in the text
-
Sub
public Sub(Text text, int strt, int finish)
Ctor.- Parameters:
text
- The Textstrt
- Start position in the textfinish
- End position in the text
-
Sub
public Sub(Text text, int strt, Scalar<Integer> finish)
Ctor.- Parameters:
text
- The Textstrt
- Start position in the textfinish
- End position in the text
-
Sub
public Sub(Text text, int strt, Func<? super String,Integer> finish)
Ctor.- Parameters:
text
- The Textstrt
- Start position in the textfinish
- End position in the text
-
Sub
public Sub(Text text, Scalar<Integer> strt, Scalar<Integer> finish)
Ctor.- Parameters:
text
- The Textstrt
- Start position in the textfinish
- End position in the text
-
Sub
public Sub(Text text, Scalar<Integer> strt, Func<? super String,Integer> finish)
Ctor.- Parameters:
text
- The Textstrt
- Start position in the textfinish
- End position in the text
-
-