public class StringFunctions
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
StringFunctions.RegexReplacer |
Constructor and Description |
---|
StringFunctions() |
Modifier and Type | Method and Description |
---|---|
static |
append(java.lang.String suffix) |
static |
convertCase(CaseFormat src,
CaseFormat target) |
static |
formatter(java.lang.String pattern)
given e.g.
|
static |
formatterForArray(java.lang.String pattern)
given e.g.
|
static |
formatterForIterable(java.lang.String pattern)
Given e.g.
|
static |
joiner(java.lang.String separator)
joins the given objects in a collection as a toString with the given separator
|
static |
joinerForArray(java.lang.String separator)
joins the given objects as a toString with the given separator, but expecting an array of objects, not a collection
|
static |
length()
returns function which gives length of input, with -1 for nulls
|
static |
prepend(java.lang.String prefix) |
static |
surround(java.lang.String prefix,
java.lang.String suffix)
Surrounds an input string with the given prefix and suffix
|
static |
toLowerCase() |
static |
toStringFunction()
provided here as a convenience; prefer
Functions#toStringFunction() |
static |
toUpperCase() |
static |
trim() |
public staticappend(java.lang.String suffix)
public staticprepend(java.lang.String prefix)
public staticformatter(java.lang.String pattern)
public staticformatterForArray(java.lang.String pattern)
public staticformatterForIterable(java.lang.String pattern)
public staticjoiner(java.lang.String separator)
public staticjoinerForArray(java.lang.String separator)
public statictoStringFunction()
Functions#toStringFunction()
public staticlength()
public staticsurround(java.lang.String prefix, java.lang.String suffix)
public statictrim()
public statictoLowerCase()
public statictoUpperCase()
public staticconvertCase(CaseFormat src, CaseFormat target)