public final class IdentifierUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Function<String,String> |
TO_LOWER_CASE
Function of
toLowerCase(String) method. |
| Modifier and Type | Method and Description |
|---|---|
static int |
compareToInLowerCase(String identifier1,
String identifier2)
Converts the two given identifier strings to lowercase and compare them.
|
static boolean |
equalsInLowerCase(String identifier1,
String identifier2)
Converts the two given identifier strings to lowercase and check for equality.
|
static boolean |
hasLeadingOrTrailingWhitespace(String s) |
static void |
prepareIdentifierCompareLocale() |
static String |
toLowerCase(String identifier)
Converts the given identifier string to lowercase.
|
public static final com.google.common.base.Function<String,String> TO_LOWER_CASE
toLowerCase(String) method.public static void prepareIdentifierCompareLocale()
public static String toLowerCase(String identifier)
identifier - the identifier string, null allowed.public static int compareToInLowerCase(String identifier1, String identifier2)
identifier1 - identifier. Must not be nullidentifier2 - identifier. Must not be nullComparator.compare(Object, Object)}public static boolean equalsInLowerCase(String identifier1, String identifier2)
identifier1 - identifier. Can be nullidentifier2 - identifier. Can be nullpublic static boolean hasLeadingOrTrailingWhitespace(String s)
s - a non-null identifiertrue if this identifier starts or ends with white spaceCopyright © 2017 Atlassian. All rights reserved.