Class StringFunctions
java.lang.Object
org.eclipse.collections.impl.block.factory.StringFunctions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static final class
private static final class
private static final class
private static final class
private static final class
private static final class
private static final class
private static final class
private static final class
private static final class
private static final class
private static final class
private static final class
private static final class
private static final class
private static final class
private static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final IntegerFunctionImpl
<String> private static final CharFunction
<String> private static final BooleanFunction
<String> private static final ByteFunction
<String> private static final CharFunction
<String> private static final DoubleFunction
<String> private static final FloatFunction
<String> private static final IntFunction
<String> private static final LongFunction
<String> private static final ShortFunction
<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegerFunctionImpl
<String> length()
subString
(int beginIndex, int endIndex) static CharFunction
<String> static BooleanFunction
<String> static ByteFunction
<String> static CharFunction
<String> static DoubleFunction
<String> static FloatFunction
<String> static IntFunction
<String> static LongFunction
<String> static ShortFunction
<String> trim()
Returns a function that returns a copy of aString
, with leading and trailing whitespace omitted.
-
Field Details
-
TO_UPPER_CASE
-
TO_LOWER_CASE
-
LENGTH
-
TRIM
-
FIRST_LETTER
-
TO_INTEGER
-
TO_PRIMITIVE_BOOLEAN
-
TO_PRIMITIVE_BYTE
-
TO_PRIMITIVE_CHAR
-
TO_FIRST_CHAR
-
TO_PRIMITIVE_DOUBLE
-
TO_PRIMITIVE_FLOAT
-
TO_PRIMITIVE_INT
-
TO_PRIMITIVE_LONG
-
TO_PRIMITIVE_SHORT
-
-
Constructor Details
-
StringFunctions
private StringFunctions()
-
-
Method Details
-
toUpperCase
-
toLowerCase
-
toInteger
-
toPrimitiveBoolean
-
toPrimitiveByte
-
toPrimitiveChar
-
toFirstChar
- Throws:
StringIndexOutOfBoundsException
- if the String is empty
-
toPrimitiveDouble
-
toPrimitiveFloat
-
toPrimitiveInt
-
toPrimitiveLong
-
toPrimitiveShort
-
length
-
firstLetter
-
subString
-
trim
Returns a function that returns a copy of aString
, with leading and trailing whitespace omitted.- See Also:
-
append
-
prepend
-