public final class

IdentifierUtils

extends Object
java.lang.Object
   ↳ com.atlassian.crowd.embedded.impl.IdentifierUtils

Summary

Fields
public static final Function<StringString> TO_LOWER_CASE Function of toLowerCase(String) method.
Public Methods
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 String toLowerCase(String identifier)
Converts the given identifier string to lowercase.
Protected Methods
static void prepareIdentifierCompareLocale()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final Function<StringString> TO_LOWER_CASE

Function of toLowerCase(String) method.

Public Methods

public static int compareToInLowerCase (String identifier1, String identifier2)

Converts the two given identifier strings to lowercase and compare them. The rule of conversion is subject to the language defined in crowd.identifier.language system property.

Parameters
identifier1 identifier.
identifier2 identifier.
Returns

public static boolean equalsInLowerCase (String identifier1, String identifier2)

Converts the two given identifier strings to lowercase and check for equality. The rule of conversion is subject to the language defined in crowd.identifier.language system property.

Parameters
identifier1 identifier.
identifier2 identifier.
Returns
  • true if equal, otherwise false.

public static String toLowerCase (String identifier)

Converts the given identifier string to lowercase. The rule of conversion is subject to the language defined in crowd.identifier.language system property.

Parameters
identifier the identifier string, not null.
Returns
  • lowercase identifier.

Protected Methods

protected static void prepareIdentifierCompareLocale ()