public final class StringFunctions extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.collections.api.block.function.Function<String,String> |
append(String valueToAppend) |
static org.eclipse.collections.api.block.function.Function<String,Character> |
firstLetter() |
static IntegerFunctionImpl<String> |
length() |
static org.eclipse.collections.api.block.function.Function<String,String> |
prepend(String valueToPrepend) |
static org.eclipse.collections.api.block.function.Function<String,String> |
subString(int beginIndex,
int endIndex) |
static org.eclipse.collections.api.block.function.primitive.CharFunction<String> |
toFirstChar() |
static org.eclipse.collections.api.block.function.Function<String,Integer> |
toInteger() |
static org.eclipse.collections.api.block.function.Function<String,String> |
toLowerCase() |
static org.eclipse.collections.api.block.function.primitive.BooleanFunction<String> |
toPrimitiveBoolean() |
static org.eclipse.collections.api.block.function.primitive.ByteFunction<String> |
toPrimitiveByte() |
static org.eclipse.collections.api.block.function.primitive.CharFunction<String> |
toPrimitiveChar() |
static org.eclipse.collections.api.block.function.primitive.DoubleFunction<String> |
toPrimitiveDouble() |
static org.eclipse.collections.api.block.function.primitive.FloatFunction<String> |
toPrimitiveFloat() |
static org.eclipse.collections.api.block.function.primitive.IntFunction<String> |
toPrimitiveInt() |
static org.eclipse.collections.api.block.function.primitive.LongFunction<String> |
toPrimitiveLong() |
static org.eclipse.collections.api.block.function.primitive.ShortFunction<String> |
toPrimitiveShort() |
static org.eclipse.collections.api.block.function.Function<String,String> |
toUpperCase() |
static org.eclipse.collections.api.block.function.Function<String,String> |
trim()
Returns a function that returns a copy of a
String, with leading and trailing whitespace
omitted. |
public static org.eclipse.collections.api.block.function.Function<String,String> toUpperCase()
public static org.eclipse.collections.api.block.function.Function<String,String> toLowerCase()
public static org.eclipse.collections.api.block.function.Function<String,Integer> toInteger()
public static org.eclipse.collections.api.block.function.primitive.BooleanFunction<String> toPrimitiveBoolean()
public static org.eclipse.collections.api.block.function.primitive.ByteFunction<String> toPrimitiveByte()
public static org.eclipse.collections.api.block.function.primitive.CharFunction<String> toPrimitiveChar()
public static org.eclipse.collections.api.block.function.primitive.CharFunction<String> toFirstChar()
StringIndexOutOfBoundsException - if the String is emptypublic static org.eclipse.collections.api.block.function.primitive.DoubleFunction<String> toPrimitiveDouble()
public static org.eclipse.collections.api.block.function.primitive.FloatFunction<String> toPrimitiveFloat()
public static org.eclipse.collections.api.block.function.primitive.IntFunction<String> toPrimitiveInt()
public static org.eclipse.collections.api.block.function.primitive.LongFunction<String> toPrimitiveLong()
public static org.eclipse.collections.api.block.function.primitive.ShortFunction<String> toPrimitiveShort()
public static IntegerFunctionImpl<String> length()
public static org.eclipse.collections.api.block.function.Function<String,Character> firstLetter()
public static org.eclipse.collections.api.block.function.Function<String,String> subString(int beginIndex, int endIndex)
public static org.eclipse.collections.api.block.function.Function<String,String> trim()
String, with leading and trailing whitespace
omitted.String.trim()public static org.eclipse.collections.api.block.function.Function<String,String> append(String valueToAppend)
Copyright © 2004–2018. All rights reserved.