Package org.cactoos.text
Class PrefixOf
- java.lang.Object
-
- org.cactoos.text.TextEnvelope
-
- org.cactoos.text.PrefixOf
-
- All Implemented Interfaces:
Text
public final class PrefixOf extends TextEnvelope
Returns a text that is before given boundary.There is no thread-safety guarantee.
- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description PrefixOf(CharSequence text, CharSequence boundary)
Ctor.PrefixOf(Text text, CharSequence boundary)
Ctor.
-
-
-
Constructor Detail
-
PrefixOf
public PrefixOf(CharSequence text, CharSequence boundary)
Ctor.- Parameters:
text
- CharSequence representing the text valueboundary
- CharSequence to which text will be split
-
PrefixOf
public PrefixOf(Text text, CharSequence boundary)
Ctor.- Parameters:
text
- Text representing the text valueboundary
- String to which text will be split
-
-