com.unboundid.directory.sdk.common.schema
Interface ApproximateMatchingRule
- All Superinterfaces:
- MatchingRule
@NotExtensible
@ThreadSafety(level=INTERFACE_THREADSAFE)
public interface ApproximateMatchingRule
- extends MatchingRule
This interface provides an API for interacting with approximate matching
rules, which can be used to determine whether one value is approximately
equal to another. The definition of "approximately equal to" may vary based
on the matching rule implementation.
Method Summary |
boolean |
approximatelyMatch(com.unboundid.util.ByteString normValue1,
com.unboundid.util.ByteString normValue2)
Indicates whether the provided values are approximately equal to each
other. |
Methods inherited from interface com.unboundid.directory.sdk.common.schema.MatchingRule |
equals, getDescription, getName, getNameOrOID, getOID, getSyntaxOID, hashCode, hasNameOrOID, isObsolete, normalizeValue, toString, valuesMatch |
approximatelyMatch
boolean approximatelyMatch(com.unboundid.util.ByteString normValue1,
com.unboundid.util.ByteString normValue2)
- Indicates whether the provided values are approximately equal to each
other.
- Parameters:
normValue1
- The normalized form of the first value for which to
make the determination.normValue2
- The normalized form of the second value for which to
make the determination.
- Returns:
true
if the values are considered approximately equal to
each other, or false
if not.