mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
28.47.2010 cc556edc003e4fb8df13611167fab0d9fd3890f9
opendj-sdk/sdk/src/org/opends/sdk/schema/AbstractMatchingRuleImpl.java
@@ -39,8 +39,8 @@
/**
 * This class implements a default equality or approximate matching rule
 * that matches normalized values in byte order.
 * This class implements a default equality or approximate matching rule that
 * matches normalized values in byte order.
 */
abstract class AbstractMatchingRuleImpl implements MatchingRuleImpl
{
@@ -51,36 +51,37 @@
    protected DefaultEqualityAssertion(
        ByteSequence normalizedAssertionValue)
        final ByteSequence normalizedAssertionValue)
    {
      this.normalizedAssertionValue = normalizedAssertionValue;
    }
    public ConditionResult matches(ByteSequence attributeValue)
    public ConditionResult matches(final ByteSequence attributeValue)
    {
      return normalizedAssertionValue.equals(attributeValue) ? ConditionResult.TRUE
          : ConditionResult.FALSE;
    }
  }
  private static final Assertion UNDEFINED_ASSERTION = new Assertion()
  {
    public ConditionResult matches(ByteSequence attributeValue)
    public ConditionResult matches(final ByteSequence attributeValue)
    {
      return ConditionResult.UNDEFINED;
    }
  };
  private static final Comparator<ByteSequence> DEFAULT_COMPARATOR =
      new Comparator<ByteSequence>()
      {
        public int compare(ByteSequence o1, ByteSequence o2)
        {
          return o1.compareTo(o2);
        }
      };
  private static final Comparator<ByteSequence> DEFAULT_COMPARATOR = new Comparator<ByteSequence>()
  {
    public int compare(final ByteSequence o1, final ByteSequence o2)
    {
      return o1.compareTo(o2);
    }
  };
@@ -91,41 +92,41 @@
  public Comparator<ByteSequence> comparator(Schema schema)
  public Comparator<ByteSequence> comparator(final Schema schema)
  {
    return DEFAULT_COMPARATOR;
  }
  public Assertion getAssertion(Schema schema, ByteSequence value)
  public Assertion getAssertion(final Schema schema, final ByteSequence value)
      throws DecodeException
  {
    return new DefaultEqualityAssertion(normalizeAttributeValue(schema,
        value));
    return new DefaultEqualityAssertion(normalizeAttributeValue(schema, value));
  }
  public Assertion getAssertion(Schema schema, ByteSequence subInitial,
      List<? extends ByteSequence> subAnyElements, ByteSequence subFinal)
      throws DecodeException
  public Assertion getAssertion(final Schema schema,
      final ByteSequence subInitial,
      final List<? extends ByteSequence> subAnyElements,
      final ByteSequence subFinal) throws DecodeException
  {
    return UNDEFINED_ASSERTION;
  }
  public Assertion getGreaterOrEqualAssertion(Schema schema,
      ByteSequence value) throws DecodeException
  public Assertion getGreaterOrEqualAssertion(final Schema schema,
      final ByteSequence value) throws DecodeException
  {
    return UNDEFINED_ASSERTION;
  }
  public Assertion getLessOrEqualAssertion(Schema schema,
      ByteSequence value) throws DecodeException
  public Assertion getLessOrEqualAssertion(final Schema schema,
      final ByteSequence value) throws DecodeException
  {
    return UNDEFINED_ASSERTION;
  }