Package fj.function
Class Strings
java.lang.Object
fj.function.Strings
Curried string functions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionA curried version ofString.contains(CharSequence)
.A curried version ofString.isEmpty()
.This function checks if a given String contains any non-whitespace character (according toCharacter.isWhitespace(char)
) and if it's also notnull
and not empty ("").This function checks if a given String is neithernull
nor empty.This function checks if a given String is whitespace (according toCharacter.isWhitespace(char)
), empty ("") ornull
.This function checks if a given String isnull
or empty (String.isEmpty()
).A curried version ofString.length()
.static final String
private static final Pattern
A curried version ofString.matches(String)
. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
lineSeparatorPattern
-
lineSeparator
-
isNotNullOrEmpty
This function checks if a given String is neithernull
nor empty.- See Also:
-
isNullOrEmpty
This function checks if a given String isnull
or empty (String.isEmpty()
).- See Also:
-
isNotNullOrBlank
This function checks if a given String contains any non-whitespace character (according toCharacter.isWhitespace(char)
) and if it's also notnull
and not empty ("").- See Also:
-
isNullOrBlank
This function checks if a given String is whitespace (according toCharacter.isWhitespace(char)
), empty ("") ornull
.- See Also:
-
isEmpty
A curried version ofString.isEmpty()
. -
length
A curried version ofString.length()
. -
contains
A curried version ofString.contains(CharSequence)
. The function returns true if the second argument contains the first. -
matches
A curried version ofString.matches(String)
. The function returns true if the second argument matches the first.
-
-
Constructor Details
-
Strings
private Strings()
-
-
Method Details
-
lines
-
lines
-
unlines
-
unlines
-