Package com.unboundid.ldap.matchingrules
Enum TelephoneNumberComparisonPolicy
java.lang.Object
java.lang.Enum<TelephoneNumberComparisonPolicy>
com.unboundid.ldap.matchingrules.TelephoneNumberComparisonPolicy
- All Implemented Interfaces:
Serializable,Comparable<TelephoneNumberComparisonPolicy>,java.lang.constant.Constable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public enum TelephoneNumberComparisonPolicy
extends Enum<TelephoneNumberComparisonPolicy>
This enum defines the policy that the
TelephoneNumberMatchingRule
should use when comparing two values in accordance with this syntax.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA policy that indicates that all non-numeric characters should be ignored when comparing values.A policy that indicates that only spaces and hyphens should be ignored when comparing values. -
Method Summary
Modifier and TypeMethodDescriptionnormalizeValue(ASN1OctetString value) Normalizes the provided value in accordance with this policy.Returns the enum constant of this type with the specified name.static TelephoneNumberComparisonPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
IGNORE_ALL_NON_NUMERIC_CHARACTERS
A policy that indicates that all non-numeric characters should be ignored when comparing values. -
IGNORE_ONLY_SPACES_AND_DASHES
A policy that indicates that only spaces and hyphens should be ignored when comparing values.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
normalizeValue
Normalizes the provided value in accordance with this policy. This method does not perform any validation on the provided value.- Parameters:
value- The value to be normalized. It must not benull.- Returns:
- The normalized representation of the provided value.
-