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