Uses of Class
fj.data.LazyString
-
Packages that use LazyString Package Description fj Types that set the premise for the existence of Functional Java.fj.data Common algebraic data types. -
-
Uses of LazyString in fj
Fields in fj with type parameters of type LazyString Modifier and Type Field Description static Equal<LazyString>
Equal. eq
An equal instance for lazy strings.static Show<LazyString>
Show. lazyStringShow
A show instance for lazy strings. -
Uses of LazyString in fj.data
Fields in fj.data declared as LazyString Modifier and Type Field Description static LazyString
LazyString. empty
The empty string.Fields in fj.data with type parameters of type LazyString Modifier and Type Field Description static F<Stream<java.lang.Character>,LazyString>
LazyString. fromStream
First-class conversion from character streams to lazy strings.static F<LazyString,Stream<java.lang.Character>>
LazyString. toStream
First-class conversion from lazy strings to streams.static F<LazyString,java.lang.String>
LazyString. toString
First-class conversion from lazy strings to String.Methods in fj.data that return LazyString Modifier and Type Method Description LazyString
LazyString. append(LazyString cs)
Appends the given lazy string to the end of this lazy string.LazyString
LazyString. append(java.lang.String s)
Appends the given String to the end of this lazy string.LazyString
LazyString. bind(F<java.lang.Character,LazyString> f)
static LazyString
LazyString. fromStream(Stream<java.lang.Character> s)
Constructs a lazy string from a stream of characters.LazyString
LazyString. map(F<java.lang.Character,java.lang.Character> f)
LazyString
LazyString. reverse()
Returns the reverse of this string.static LazyString
LazyString. str(java.lang.String s)
Constructs a lazy string from a String.LazyString
LazyString. tail()
Returns all but the first character of this string.static LazyString
LazyString. unlines(Stream<LazyString> str)
Joins the given stream of lazy strings into one, separated by newlines.static LazyString
LazyString. unwords(Stream<LazyString> str)
Joins the given stream of lazy strings into one, separated by spaces.Methods in fj.data that return types with arguments of type LazyString Modifier and Type Method Description static IO<LazyString>
IO. getContents()
static IO<LazyString>
IOFunctions. getContents()
Stream<LazyString>
LazyString. lines()
Splits this lazy string into lines.static F<LazyString,Stream<LazyString>>
LazyString. lines_()
static F<LazyString,Stream<LazyString>>
LazyString. lines_()
Stream<LazyString>
LazyString. split(char c)
Splits this lazy string by the given delimiter character.Stream<LazyString>
LazyString. split(F<java.lang.Character,java.lang.Boolean> p)
Splits this lazy string by characters matching the given predicate.static F<LazyString,F<LazyString,java.lang.Boolean>>
LazyString. startsWith()
First-class prefix check.static F<LazyString,F<LazyString,java.lang.Boolean>>
LazyString. startsWith()
First-class prefix check.static F<Stream<LazyString>,LazyString>
LazyString. unlines_()
static F<Stream<LazyString>,LazyString>
LazyString. unlines_()
Stream<LazyString>
LazyString. words()
Splits this lazy string into words by spaces.Methods in fj.data with parameters of type LazyString Modifier and Type Method Description LazyString
LazyString. append(LazyString cs)
Appends the given lazy string to the end of this lazy string.boolean
LazyString. contains(LazyString cs)
Returns true if the given lazy string is a substring of this lazy string.boolean
LazyString. endsWith(LazyString cs)
Returns true if the given lazy string is a suffix of this lazy string.Option<java.lang.Integer>
LazyString. indexOf(LazyString cs)
Returns the first index of the given substring in this lazy string, if present.boolean
LazyString. startsWith(LazyString cs)
Returns true if the given lazy string is a prefix of this lazy string.Method parameters in fj.data with type arguments of type LazyString Modifier and Type Method Description LazyString
LazyString. bind(F<java.lang.Character,LazyString> f)
static IO<Unit>
IO. interact(F<LazyString,LazyString> f)
static IO<Unit>
IO. interact(F<LazyString,LazyString> f)
static IO<Unit>
IOFunctions. interact(F<LazyString,LazyString> f)
static IO<Unit>
IOFunctions. interact(F<LazyString,LazyString> f)
static LazyString
LazyString. unlines(Stream<LazyString> str)
Joins the given stream of lazy strings into one, separated by newlines.static LazyString
LazyString. unwords(Stream<LazyString> str)
Joins the given stream of lazy strings into one, separated by spaces.
-