public final class AttributeValueTransliterator extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
areTransliterations(String value1,
String value2)
Returns
true if and only if the given values are transliteration variants of each other. |
static boolean |
needsTransliteration(CharSequence value)
Returns
true if and only if the given value is in Latin script according to Unicode. |
static String |
transliterate(String value)
Transliterates the given value to Latin script according to Unicode.
|
public static boolean areTransliterations(@Nullable String value1, @Nullable String value2)
true
if and only if the given values are transliteration variants of each other.value1
- the first valuevalue2
- the second valuetrue
if and only if the given values are transliteration variants of each other.public static boolean needsTransliteration(@Nullable CharSequence value)
true
if and only if the given value is in Latin script according to Unicode.value
- the value to testtrue
if and only if the given value is in Latin script according to Unicode.Copyright © 2020. All Rights Reserved.