public final class StringTransformers extends Object
Transformer<String>
s.Modifier and Type | Field and Description |
---|---|
static Transformer |
TO_EMPTY
Transforms any string to
"" (the empty string). |
static Transformer<CharSequence,String> |
TO_LOWER_CASE |
static Transformer<CharSequence,String> |
TO_UPPER_CASE |
Modifier and Type | Method and Description |
---|---|
static Transformer<CharSequence,String> |
replaceChar(char oldChar,
char newChar) |
static <EX extends Throwable> |
toEmpty()
Transforms any string to
"" (the empty string). |
public static final Transformer<CharSequence,String> TO_UPPER_CASE
String.toUpperCase()
public static final Transformer<CharSequence,String> TO_LOWER_CASE
String.toLowerCase()
public static final Transformer TO_EMPTY
""
(the empty string).public static Transformer<CharSequence,String> replaceChar(char oldChar, char newChar)
String.replace(char, char)
public static <EX extends Throwable> TransformerWhichThrows<CharSequence,CharSequence,EX> toEmpty()
""
(the empty string).Copyright © 2018 Arno Unkrig. All rights reserved.