public final class StringTransformers extends Object
StringTransformers
.Modifier and Type | Field | Description |
---|---|---|
static StringTransformer |
IDENTIY |
Keeps a string as is.
|
static StringTransformer |
NFC |
Normalizes a string using
NFC
|
static StringTransformer |
NFD |
Normalizes a string using
NFD
|
Constructor | Description |
---|---|
StringTransformers() |
Modifier and Type | Method | Description |
---|---|---|
StringTransformer |
caseInsensitive() |
Creates a case insensitive transformer for the current locale.
|
static StringTransformer |
caseInsensitive(Locale locale) |
Creates a case insensitive transformer for the given locale.
|
static StringTransformer |
caseInsensitiveMacOSJvm(Locale locale) |
Creates a case insensitive transformer for macOS as presented by the
JVM (NFC) for the given locale.
|
static StringTransformer |
caseInsensitiveMacOSNative(Locale locale) |
Creates a case insensitive transformer for native macOS (NFD) for
the given locale.
|
public static final StringTransformer IDENTIY
public static final StringTransformer NFD
public static final StringTransformer NFC
public StringTransformer caseInsensitive()
public static StringTransformer caseInsensitive(Locale locale)
locale
- the localepublic static StringTransformer caseInsensitiveMacOSNative(Locale locale)
locale
- the localepublic static StringTransformer caseInsensitiveMacOSJvm(Locale locale)
locale
- the localeCopyright © 2011–2018. All rights reserved.