|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.embedded.impl.IdentifierUtils
public final class IdentifierUtils
Field Summary | |
---|---|
static com.google.common.base.Function<String,String> |
TO_LOWER_CASE
Function of toLowerCase(String) method. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final com.google.common.base.Function<String,String> TO_LOWER_CASE
toLowerCase(String)
method.
Method Detail |
---|
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 null
Comparator.compare(Object, Object)
}public static boolean equalsInLowerCase(String identifier1, String identifier2)
identifier1
- identifier. Can be nullidentifier2
- identifier. Can be null
public static boolean hasLeadingOrTrailingWhitespace(String s)
s
- a non-null
identifier
true
if this identifier starts or ends with white space
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |