From f2160f4bd1c8ac67e5a86a6710d431e8932877f9 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 28 May 2010 11:47:51 +0000
Subject: [PATCH] Synchronize SDK on java.net with internal repository.
---
sdk/src/org/opends/sdk/schema/AbstractMatchingRuleImpl.java | 49 +++++++++++++++++++++++++------------------------
1 files changed, 25 insertions(+), 24 deletions(-)
diff --git a/sdk/src/org/opends/sdk/schema/AbstractMatchingRuleImpl.java b/sdk/src/org/opends/sdk/schema/AbstractMatchingRuleImpl.java
index 3de718d..2e9309c 100644
--- a/sdk/src/org/opends/sdk/schema/AbstractMatchingRuleImpl.java
+++ b/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;
}
--
Gitblit v1.10.0